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>
<FooterContainer style={{justifyContent: message ? 'space-between' : 'flex-end'}}>
Copy link
Member

Choose a reason for hiding this comment

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

tempted to say make a prop called hasMessage on FooterContainer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

eh, this requires less code to do the same thinng

{message && <FooterMessage>{message}</FooterMessage>}
<FooterActions>
{!disableMultipleProjectSelection && (
Expand Down Expand Up @@ -405,7 +405,6 @@ export default withRouter(MultipleProjectSelector);

const FooterContainer = styled('div')`
display: flex;
justify-content: space-between;
`;

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