diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-30 21:13:34 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-05-30 21:13:34 -0500 |
commit | 421f29ad980e73454f7812e79bff852f362b643e (patch) | |
tree | b5f67e7099db815b8f03c7229b94eeb990e52180 /src/view/shell/Drawer.tsx | |
parent | e224569a11b82361d782324a63bdfc19d44a3201 (diff) | |
parent | 2413549fa5ae77c1d0ca3d91cf43c2ef41c35d63 (diff) | |
download | voidsky-421f29ad980e73454f7812e79bff852f362b643e.tar.zst |
Merge branch 'ericvolp12-inherit_system_theme' into main
Diffstat (limited to 'src/view/shell/Drawer.tsx')
-rw-r--r-- | src/view/shell/Drawer.tsx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 57f4ee696..cf8639338 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -27,7 +27,6 @@ import { CogIcon, MagnifyingGlassIcon2, MagnifyingGlassIcon2Solid, - MoonIcon, UserIconSolid, SatelliteDishIcon, SatelliteDishIconSolid, @@ -119,12 +118,6 @@ export const DrawerContent = observer(() => { track('Menu:FeedbackClicked') Linking.openURL(FEEDBACK_FORM_URL) }, [track]) - - const onDarkmodePress = React.useCallback(() => { - track('Menu:ItemClicked', {url: '#darkmode'}) - store.shell.setDarkMode(!store.shell.darkMode) - }, [track, store]) - // rendering // = @@ -303,29 +296,6 @@ export const DrawerContent = observer(() => { <View style={styles.smallSpacer} /> </ScrollView> <View style={styles.footer}> - {!isWeb && ( - <TouchableOpacity - accessibilityRole="button" - accessibilityLabel="Toggle dark mode" - accessibilityHint={ - theme.colorScheme === 'dark' - ? 'Sets display to light mode' - : 'Sets display to dark mode' - } - onPress={onDarkmodePress} - style={[ - styles.footerBtn, - theme.colorScheme === 'light' - ? pal.btn - : styles.footerBtnDarkMode, - ]}> - <MoonIcon - size={22} - style={pal.text as StyleProp<ViewStyle>} - strokeWidth={2} - /> - </TouchableOpacity> - )} <TouchableOpacity accessibilityRole="link" accessibilityLabel="Send feedback" @@ -536,9 +506,6 @@ const styles = StyleSheet.create({ padding: 10, borderRadius: 25, }, - footerBtnDarkMode: { - backgroundColor: colors.black, - }, footerBtnFeedback: { paddingHorizontal: 24, }, |