Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add composer button to Notifications (#2806)

authored by

dan and committed by
GitHub
0944d2d9 390a9f3d

+12
+12
src/view/screens/Notifications.tsx
··· 29 29 import {truncateAndInvalidate} from '#/state/queries/util' 30 30 import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' 31 31 import {isNative} from '#/platform/detection' 32 + import {FAB} from '../com/util/fab/FAB' 33 + import {ComposeIcon2} from 'lib/icons' 34 + import {useComposerControls} from '#/state/shell/composer' 32 35 33 36 type Props = NativeStackScreenProps< 34 37 NotificationsTabNavigatorParams, ··· 47 50 const unreadApi = useUnreadNotificationsApi() 48 51 const hasNew = !!unreadNotifs 49 52 const isScreenFocused = useIsFocused() 53 + const {openComposer} = useComposerControls() 50 54 51 55 // event handlers 52 56 // = ··· 156 160 showIndicator={hasNew} 157 161 /> 158 162 )} 163 + <FAB 164 + testID="composeFAB" 165 + onPress={() => openComposer({})} 166 + icon={<ComposeIcon2 strokeWidth={1.5} size={29} style={s.white} />} 167 + accessibilityRole="button" 168 + accessibilityLabel={_(msg`New post`)} 169 + accessibilityHint="" 170 + /> 159 171 </View> 160 172 ) 161 173 }