Merge pull request #3818 from urbit/mp/landscape/home-in-switcher

landscape: 'home' workspace in switcher
This commit is contained in:
L 2020-10-29 19:26:44 -05:00 committed by GitHub
commit b63760aa14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,8 @@ export function GroupSwitcher(props: {
width="100%"
alignItems="stretch"
>
<GroupSwitcherItem to="">
{(props.baseUrl === '/~landscape/home') ?
<GroupSwitcherItem to="">
<Icon
mr={2}
color="gray"
@ -111,6 +112,16 @@ export function GroupSwitcher(props: {
/>
<Text>All Groups</Text>
</GroupSwitcherItem>
:
<GroupSwitcherItem to="/~landscape/home">
<Icon
mr={2}
color="gray"
display="block"
icon="Circle"
/>
<Text>Home</Text>
</GroupSwitcherItem>}
<RecentGroups
recent={props.recentGroups}
associations={props.associations}