diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-04-27 05:54:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 05:54:18 +0100 |
commit | ce85375c856549371e1e561e21bb5932baca8ea6 (patch) | |
tree | 7938f91a11ff2d2459707ac19f09774f30857150 /src/view/shell/desktop/LeftNav.tsx | |
parent | 1af59ca8a7db308325f8964a131d544882cff6e8 (diff) | |
download | voidsky-ce85375c856549371e1e561e21bb5932baca8ea6.tar.zst |
[Clipclops] New routes with placeholder screens (#3725)
* add new routes with placeholder screens * gate content * add filled envelope style * swap filled state * switch to `useAgent`
Diffstat (limited to 'src/view/shell/desktop/LeftNav.tsx')
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 85086c21a..91d20e089 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -12,6 +12,7 @@ import { useNavigationState, } from '@react-navigation/native' +import {useGate} from '#/lib/statsig/statsig' import {isInvalidHandle} from '#/lib/strings/handles' import {emitSoftReset} from '#/state/events' import {useFetchHandle} from '#/state/queries/handle' @@ -46,6 +47,8 @@ import {LoadingPlaceholder} from 'view/com/util/LoadingPlaceholder' import {PressableWithHover} from 'view/com/util/PressableWithHover' import {Text} from 'view/com/util/text/Text' import {UserAvatar} from 'view/com/util/UserAvatar' +import {Envelope_Stroke2_Corner0_Rounded as Envelope} from '#/components/icons/Envelope' +import {Envelope_Filled_Stroke2_Corner0_Rounded as EnvelopeFilled} from '#/components/icons/Envelope' import {router} from '../../../routes' function ProfileCard() { @@ -272,6 +275,7 @@ export function DesktopLeftNav() { const {_} = useLingui() const {isDesktop, isTablet} = useWebMediaQueries() const numUnread = useUnreadNotifications() + const gate = useGate() if (!hasSession && !isDesktop) { return null @@ -346,6 +350,16 @@ export function DesktopLeftNav() { } label={_(msg`Notifications`)} /> + {gate('dms') && ( + <NavItem + href="/messages" + icon={<Envelope style={pal.text} width={isDesktop ? 26 : 30} />} + iconFilled={ + <EnvelopeFilled style={pal.text} width={isDesktop ? 26 : 30} /> + } + label={_(msg`Messages`)} + /> + )} <NavItem href="/feeds" icon={ |