Skip to content

Conversation

@scefali
Copy link
Contributor

@scefali scefali commented Oct 26, 2021

Moving logic from inline to the styled component

@scefali scefali requested a review from a team October 26, 2021 21:09
@scefali scefali requested a review from a team as a code owner October 26, 2021 21:09
const FooterContainer = styled('div')`
const FooterContainer = styled('div')<{hasMessage: boolean}>`
display: flex;
justify-content: ${p => (p.hasMessage ? 'space-between' : 'flex-end')};
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need the parentheses here around p.hasMessage ? ... 'flex-end'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davidenwang I believe prettier added them for me

Copy link
Member

Choose a reason for hiding this comment

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

that's correct it's prettier

@scefali scefali merged commit 6cbeef2 into master Oct 26, 2021
@scefali scefali deleted the fix/styled-component-inline-style branch October 26, 2021 21:48
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants