Skip to content

refactor: use styled-components in user-list-item#601

Merged
chinesedfan merged 5 commits intogitpoint:masterfrom
simonhoyos:refacor-user-list
Feb 14, 2018
Merged

refactor: use styled-components in user-list-item#601
chinesedfan merged 5 commits intogitpoint:masterfrom
simonhoyos:refacor-user-list

Conversation

@simonhoyos
Copy link
Copy Markdown
Contributor

@simonhoyos simonhoyos commented Oct 29, 2017

Related #532

@simonhoyos
Copy link
Copy Markdown
Contributor Author

screen shot 2017-10-28 at 20 38 19

screen shot 2017-10-28 at 20 38 34

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.4%) to 37.615% when pulling 3a07560 on shmesa22:refacor-user-list into 0c0a163 on gitpoint:master.

Copy link
Copy Markdown
Member

@chinesedfan chinesedfan left a comment

Choose a reason for hiding this comment

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

@shmesa22 Nice job! Everything is fine expect the name of noBorderBottom.

)}
underlayColor={colors.greyLight}
style={!noBorderBottom && styles.borderContainer}
noBorderBottom={!noBorderBottom}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here is wired.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hmm what do you mean by wired?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@alejandronanez The prop name should be something like hasBorderBottom, because the value is !noBorderBottom.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 29, 2017

Coverage Status

Coverage increased (+0.4%) to 44.88% when pulling a969e55 on shmesa22:refacor-user-list into 1947f1c on gitpoint:master.

@machour machour self-assigned this Nov 4, 2017
Copy link
Copy Markdown
Member

@machour machour left a comment

Choose a reason for hiding this comment

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

Hey 😄

Could you take a look at my remark? I'm not sure this will behave as expected. Other than that, it looks good to me.

I'll take care of testing & merging as soon as you check it out

},
});
const ViewBorderContainer = styled.View`
border-bottom-color: ${props => props.hasBorderBottom && colors.greyLight};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this will evaluate to a boolean and not work as expected .. shouldn't you be providing two different return values (just like the line below this one?)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@shmesa22 Right. It will cause a invalid prop error.

I am eager to merge styled-components PRs and your PR is very very close to be merged. So forgive me to fix it in your branch directly. Normally I shouldn't do that.

`;
const TouchableBorderContainer = ViewBorderContainer.withComponent(
TouchableHighlight
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nicely done 👍

@machour
Copy link
Copy Markdown
Member

machour commented Jan 16, 2018

Ping here to @shmesa22 😄
Let me know if you need anything!

@chinesedfan chinesedfan merged commit d0fc33c into gitpoint:master Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants