landscape: new channel surfaces 'back' button on mobile

This commit is contained in:
Matilde Park 2020-10-30 16:20:41 -04:00
parent 8a09a216c3
commit bef97699e2
2 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export function GroupsPane(props: GroupsPaneProps) {
workspace={workspace}
/>
</>
)
)
return (
<Switch>
@ -168,6 +168,7 @@ export function GroupsPane(props: GroupsPaneProps) {
<NewChannel
{...routeProps}
api={api}
baseUrl={baseUrl}
associations={associations}
groups={groups}
group={groupPath}

View File

@ -108,6 +108,9 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
};
return (
<Col overflowY="auto" p={3}>
<Box pb='3' display={['block', 'none']} onClick={() => history.push(props.baseUrl)}>
{'<- Back'}
</Box>
<Box fontWeight="bold" mb={4} color="black">
New Channel
</Box>