Bluesky app fork with some witchin' additions 💫

Don't show "Pin/Add" button on feed card w/ no session (#4539)

* pt 1

* tweak

authored by hailey.at and committed by

GitHub ba2fadb6 89be5a44

+7
+7
src/components/FeedCard.tsx
··· 11 11 useRemoveFeedMutation, 12 12 } from '#/state/queries/preferences' 13 13 import {sanitizeHandle} from 'lib/strings/handles' 14 + import {useSession} from 'state/session' 14 15 import {UserAvatar} from '#/view/com/util/UserAvatar' 15 16 import * as Toast from 'view/com/util/Toast' 16 17 import {useTheme} from '#/alf' ··· 116 117 } 117 118 118 119 export function Action({uri, pin}: {uri: string; pin?: boolean}) { 120 + const {hasSession} = useSession() 121 + if (!hasSession) return null 122 + return <ActionInner uri={uri} pin={pin} /> 123 + } 124 + 125 + function ActionInner({uri, pin}: {uri: string; pin?: boolean}) { 119 126 const {_} = useLingui() 120 127 const {data: preferences} = usePreferencesQuery() 121 128 const {isPending: isAddSavedFeedPending, mutateAsync: saveFeeds} =