21989b558b
* add mockup screen * add notification index screen * add redirect screen * upgrade sdk * new icons * add new screens * make router typesafe, finish adding screens * add routes to go server * load settings * push notif settings * improve web * fix lockfile lint * no $type on preferences * prompt to enable push notifications * fix reply prefs * space out options * fix copy error * Update RepostsOnRepostsNotificationSettings.tsx * only send minimal diff to putPrefs * fix yarn.lock * Update Navigation.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/screens/Settings/NotificationSettings/index.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add description to `syncOthers` --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
22 lines
485 B
TypeScript
22 lines
485 B
TypeScript
import {useCallback} from 'react'
|
|
import {useFocusEffect} from '@react-navigation/native'
|
|
|
|
import {
|
|
type AllNavigatorParams,
|
|
type NativeStackScreenProps,
|
|
} from '#/lib/routes/types'
|
|
|
|
type Props = NativeStackScreenProps<
|
|
AllNavigatorParams,
|
|
'LegacyNotificationSettings'
|
|
>
|
|
export function LegacyNotificationSettingsScreen({navigation}: Props) {
|
|
useFocusEffect(
|
|
useCallback(() => {
|
|
navigation.replace('NotificationSettings')
|
|
}, [navigation]),
|
|
)
|
|
|
|
return null
|
|
}
|