Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const SelectorFooterControls = ({
: t('Select My Projects');

return (
<FooterContainer style={{justifyContent: message ? 'space-between' : 'flex-end'}}>
<FooterContainer hasMessage={!!message}>
{message && <FooterMessage>{message}</FooterMessage>}
<FooterActions>
{!disableMultipleProjectSelection && (
Expand Down Expand Up @@ -403,8 +403,9 @@ const SelectorFooterControls = ({

export default withRouter(MultipleProjectSelector);

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

`;

const FooterActions = styled('div')`
Expand Down