From c3ed0dc44cf36d1f2275735f7c69ac010c5ecff8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 17 Mar 2023 14:03:16 -0500 Subject: Move the feed selector to the footer --- src/view/com/profile/FollowButton.tsx | 6 ++- src/view/com/util/Pager.tsx | 17 ++++++- src/view/com/util/PostMeta.tsx | 1 + src/view/com/util/TabBar.tsx | 28 ++++++++--- src/view/screens/Home.tsx | 87 +++++++++++++++++++++++++---------- src/view/shell/BottomBar.tsx | 22 +++++++-- 6 files changed, 121 insertions(+), 40 deletions(-) (limited to 'src') diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 7a194cee9..5204f5a40 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -1,16 +1,18 @@ import React from 'react' import {observer} from 'mobx-react-lite' -import {Button} from '../util/forms/Button' +import {Button, ButtonType} from '../util/forms/Button' import {useStores} from 'state/index' import * as apilib from 'lib/api/index' import * as Toast from '../util/Toast' const FollowButton = observer( ({ + type = 'inverted', did, declarationCid, onToggleFollow, }: { + type?: ButtonType did: string declarationCid: string onToggleFollow?: (v: boolean) => void @@ -42,7 +44,7 @@ const FollowButton = observer( return (