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

View File

@ -108,6 +108,9 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
}; };
return ( return (
<Col overflowY="auto" p={3}> <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"> <Box fontWeight="bold" mb={4} color="black">
New Channel New Channel
</Box> </Box>