diff options
Diffstat (limited to 'src/screens/Settings/AboutSettings.tsx')
-rw-r--r-- | src/screens/Settings/AboutSettings.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/screens/Settings/AboutSettings.tsx b/src/screens/Settings/AboutSettings.tsx index 0ce127ff3..6be881a88 100644 --- a/src/screens/Settings/AboutSettings.tsx +++ b/src/screens/Settings/AboutSettings.tsx @@ -20,9 +20,11 @@ import {BroomSparkle_Stroke2_Corner2_Rounded as BroomSparkleIcon} from '#/compon import {CodeLines_Stroke2_Corner2_Rounded as CodeLinesIcon} from '#/components/icons/CodeLines' import {Globe_Stroke2_Corner0_Rounded as GlobeIcon} from '#/components/icons/Globe' import {Newspaper_Stroke2_Corner2_Rounded as NewspaperIcon} from '#/components/icons/Newspaper' +import {ShieldCheck_Stroke2_Corner0_Rounded as Shield} from '#/components/icons/Shield' import {Wrench_Stroke2_Corner2_Rounded as WrenchIcon} from '#/components/icons/Wrench' import * as Layout from '#/components/Layout' import {Loader} from '#/components/Loader' +import {device} from '#/storage' import {useDemoMode} from '#/storage/hooks/demo-mode' import {useDevMode} from '#/storage/hooks/dev-mode' import {OTAInfo} from './components/OTAInfo' @@ -179,6 +181,20 @@ export function AboutSettingsScreen({}: Props) { </SettingsList.ItemText> </SettingsList.PressableItem> )} + + <SettingsList.PressableItem + onPress={() => { + device.set(['geolocation'], { + countryCode: 'GB', + isAgeRestrictedGeo: true, + }) + }} + label="Simulate age restriction"> + <SettingsList.ItemIcon icon={Shield} /> + <SettingsList.ItemText> + Simulate age restriction + </SettingsList.ItemText> + </SettingsList.PressableItem> </> )} </SettingsList.Container> |