From 8bb3f40a59232f71ae2b09509e3ae2559a04e4a7 Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Thu, 25 May 2023 13:14:40 -0700 Subject: [PATCH] add saved feeds to left nav on desktop --- src/view/com/pager/FeedsTabBar.web.tsx | 2 +- src/view/com/pager/TabBar.tsx | 9 ++++++--- src/view/shell/desktop/LeftNav.tsx | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/view/com/pager/FeedsTabBar.web.tsx b/src/view/com/pager/FeedsTabBar.web.tsx index b51db174..0df91595 100644 --- a/src/view/com/pager/FeedsTabBar.web.tsx +++ b/src/view/com/pager/FeedsTabBar.web.tsx @@ -28,7 +28,7 @@ const FeedsTabBarDesktop = observer( ) => { const store = useStores() const items = useMemo( - () => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My Feeds'], + () => ['Following', ...store.me.savedFeeds.pinnedFeedNames], [store.me.savedFeeds.pinnedFeedNames], ) const pal = usePalette('default') diff --git a/src/view/com/pager/TabBar.tsx b/src/view/com/pager/TabBar.tsx index 2a1f2899..ec636d05 100644 --- a/src/view/com/pager/TabBar.tsx +++ b/src/view/com/pager/TabBar.tsx @@ -110,13 +110,16 @@ const styles = isDesktopWeb outer: { flexDirection: 'row', width: 598, - paddingHorizontal: 14, }, - contentContainer: {}, + contentContainer: { + columnGap: 14, + marginLeft: 14, + paddingRight: 14, + backgroundColor: 'transparent', + }, item: { paddingTop: 14, paddingBottom: 12, - paddingHorizontal: 12, borderBottomWidth: 3, borderBottomColor: 'transparent', }, diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index ba48dd2a..01cace15 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -204,6 +204,24 @@ export const DesktopLeftNav = observer(function DesktopLeftNav() { } label="Notifications" /> + + } + iconFilled={ + + } + label="My Feeds" + />