Skip to content

Week 2 HW Submission - Pavel Trekell#2

Open
ptrekell wants to merge 9 commits into
modern-web-application-uw18:masterfrom
ptrekell:master
Open

Week 2 HW Submission - Pavel Trekell#2
ptrekell wants to merge 9 commits into
modern-web-application-uw18:masterfrom
ptrekell:master

Conversation

@ptrekell

Copy link
Copy Markdown

Week 2 HW Submission

Please fill out the information below in order to complete your assignment. Feel free to update this comment later if necessary.

  • Comfort rating on this assignment (1-5): 5
  • Completion rating on this assignment (complete/incomplete): complete
  • Github handles of code I've reviewed:

cirept referenced this pull request in cirept/week2 May 7, 2018
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll allow it 😉 It's nice to have the grid

item: PropTypes.object.isRequired
}

export default BodyText; No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job with this component, using functional components + composing the component with the goToAddress function.

@@ -0,0 +1,40 @@
.nopadding {
padding: 0 !important;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, using !important is rarely a good practice in CSS. For this assignment, it's doable. But in larger projects, it can cause unexpected behaviors and bugs. An alternative to using !important is to be more specific with your selectors.



render() {
if (this.props.lnBreak % 2) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever, I like this. While you can also alternate styling with the :nth-child pseudo-selector. Either way works (I think developers making UIs that need to resize often tend to favor your method)


it('should render <UserBadge /> element', ()=> {
expect(wrapper.find(UserBadge)).toHaveLength(1);
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job with going out and learning + incorporating Enzyme with your tests. I'll be making a video on this soon 😄

bmlebeuf added a commit to bmlebeuf/week2 that referenced this pull request Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants