mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Differentiate icon for group vs local
This commit is contained in:
parent
7fb0044471
commit
39bcb01894
3 changed files with 3 additions and 2 deletions
|
@ -105,6 +105,7 @@ export const ICONS = {
|
|||
month: () => import('@iconify-icons/mingcute/calendar-month-line'),
|
||||
media: () => import('@iconify-icons/mingcute/photo-album-line'),
|
||||
speak: () => import('@iconify-icons/mingcute/radar-line'),
|
||||
building: () => import('@iconify-icons/mingcute/building-5-line'),
|
||||
};
|
||||
|
||||
const ICONDATA = {};
|
||||
|
|
|
@ -202,7 +202,7 @@ function NavMenu(props) {
|
|||
<Icon icon="search" size="l" /> <span>Search</span>
|
||||
</MenuLink>
|
||||
<MenuLink to={`/${instance}/p/l`}>
|
||||
<Icon icon="group" size="l" /> <span>Local</span>
|
||||
<Icon icon="building" size="l" /> <span>Local</span>
|
||||
</MenuLink>
|
||||
<MenuLink to={`/${instance}/p`}>
|
||||
<Icon icon="earth" size="l" /> <span>Federated</span>
|
||||
|
|
|
@ -159,7 +159,7 @@ export const SHORTCUTS_META = {
|
|||
title: ({ local }) => (local ? 'Local' : 'Federated'),
|
||||
subtitle: ({ instance }) => instance || api().instance,
|
||||
path: ({ local, instance }) => `/${instance}/p${local ? '/l' : ''}`,
|
||||
icon: ({ local }) => (local ? 'group' : 'earth'),
|
||||
icon: ({ local }) => (local ? 'building' : 'earth'),
|
||||
},
|
||||
trending: {
|
||||
id: 'trending',
|
||||
|
|
Loading…
Add table
Reference in a new issue