about summary refs log tree commit diff
path: root/src/view/screens/Profile.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-22 16:53:11 -0600
committerGitHub <noreply@github.com>2023-11-22 16:53:11 -0600
commit95f8bd8ddb356ce982b31eabb2dcf9f08ba40b9b (patch)
treec25793eac2ee221ce6b431201c0d4362384c7297 /src/view/screens/Profile.tsx
parent08333002cc4589c225c8fb82112d7059c334bfeb (diff)
downloadvoidsky-95f8bd8ddb356ce982b31eabb2dcf9f08ba40b9b.tar.zst
[PWI] Misc (#1977)
* PostDropdownBtn

* Hide reply prompt

* Hide FABs
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r--src/view/screens/Profile.tsx20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index 1d03f2801..55fe02cdd 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -131,7 +131,7 @@ function ProfileScreenLoaded({
   hideBackButton: boolean
 }) {
   const profile = useProfileShadow(profileUnshadowed)
-  const {currentAccount} = useSession()
+  const {hasSession, currentAccount} = useSession()
   const setMinimalShellMode = useSetMinimalShellMode()
   const {openComposer} = useComposerControls()
   const {screen, track} = useAnalytics()
@@ -360,14 +360,16 @@ function ProfileScreenLoaded({
             )
           : null}
       </PagerWithHeader>
-      <FAB
-        testID="composeFAB"
-        onPress={onPressCompose}
-        icon={<ComposeIcon2 strokeWidth={1.5} size={29} style={s.white} />}
-        accessibilityRole="button"
-        accessibilityLabel={_(msg`New post`)}
-        accessibilityHint=""
-      />
+      {hasSession && (
+        <FAB
+          testID="composeFAB"
+          onPress={onPressCompose}
+          icon={<ComposeIcon2 strokeWidth={1.5} size={29} style={s.white} />}
+          accessibilityRole="button"
+          accessibilityLabel={_(msg`New post`)}
+          accessibilityHint=""
+        />
+      )}
     </ScreenHider>
   )
 }