From 00b7189d5da5bc910ece5715dec2774185639c5e Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Mon, 16 Jan 2023 17:07:33 -0600
Subject: Readd the FAB for composing new posts

---
 src/view/com/util/ViewHeader.tsx | 11 -----------
 1 file changed, 11 deletions(-)

(limited to 'src/view/com/util/ViewHeader.tsx')

diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx
index 2e584b764..e46270718 100644
--- a/src/view/com/util/ViewHeader.tsx
+++ b/src/view/com/util/ViewHeader.tsx
@@ -21,12 +21,10 @@ export const ViewHeader = observer(function ViewHeader({
   title,
   subtitle,
   canGoBack,
-  onPost,
 }: {
   title: string
   subtitle?: string
   canGoBack?: boolean
-  onPost?: () => void
 }) {
   const theme = useTheme()
   const pal = usePalette('default')
@@ -37,9 +35,6 @@ export const ViewHeader = observer(function ViewHeader({
   const onPressMenu = () => {
     store.shell.setMainMenuOpen(true)
   }
-  const onPressCompose = () => {
-    store.shell.openComposer({onPost})
-  }
   const onPressSearch = () => {
     store.nav.navigate(`/search`)
   }
@@ -85,12 +80,6 @@ export const ViewHeader = observer(function ViewHeader({
           </Text>
         ) : undefined}
       </View>
-      <TouchableOpacity
-        onPress={onPressCompose}
-        hitSlop={HITSLOP}
-        style={[styles.btn, {backgroundColor: pal.colors.backgroundLight}]}>
-        <FontAwesomeIcon size={18} icon="plus" style={pal.text} />
-      </TouchableOpacity>
       <TouchableOpacity
         onPress={onPressSearch}
         hitSlop={HITSLOP}
-- 
cgit 1.4.1

