Skip to content

Commit

Permalink
[FIX] Unnecessary padding on teams channels footer (#25712)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Jun 2, 2022
1 parent 8274ba3 commit 19a996a
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,22 @@ const BaseTeamsChannels = ({
)}
</VerticalBar.Content>

<VerticalBar.Footer>
<ButtonGroup stretch>
{onClickAddExisting && (
<Button onClick={onClickAddExisting} width='50%'>
{t('Team_Add_existing')}
</Button>
)}
{onClickCreateNew && (
<Button onClick={onClickCreateNew} width='50%'>
{t('Create_new')}
</Button>
)}
</ButtonGroup>
</VerticalBar.Footer>
{(onClickAddExisting || onClickCreateNew) && (
<VerticalBar.Footer>
<ButtonGroup stretch>
{onClickAddExisting && (
<Button onClick={onClickAddExisting} width='50%'>
{t('Team_Add_existing')}
</Button>
)}
{onClickCreateNew && (
<Button onClick={onClickCreateNew} width='50%'>
{t('Create_new')}
</Button>
)}
</ButtonGroup>
</VerticalBar.Footer>
)}
</>
);
};
Expand Down

0 comments on commit 19a996a

Please sign in to comment.