about summary refs log tree commit diff
path: root/src/view/screens/Storybook/Dialogs.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-07-11 18:37:43 -0700
committerGitHub <noreply@github.com>2024-07-11 18:37:43 -0700
commit83e8522e0a89be28b1733f4c50dbd4379d98d03b (patch)
treec51a1054ffa8f1b226412a77fa7d69f5c891f7ae /src/view/screens/Storybook/Dialogs.tsx
parent2397104ad6169ced02b1acd9fbbbe426f4cc4da0 (diff)
downloadvoidsky-83e8522e0a89be28b1733f4c50dbd4379d98d03b.tar.zst
Create shared preferences API (#4654)
Diffstat (limited to 'src/view/screens/Storybook/Dialogs.tsx')
-rw-r--r--src/view/screens/Storybook/Dialogs.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/view/screens/Storybook/Dialogs.tsx b/src/view/screens/Storybook/Dialogs.tsx
index 6d166d4b6..ca2420fed 100644
--- a/src/view/screens/Storybook/Dialogs.tsx
+++ b/src/view/screens/Storybook/Dialogs.tsx
@@ -1,7 +1,9 @@
 import React from 'react'
 import {View} from 'react-native'
+import {useNavigation} from '@react-navigation/native'
 
 import {useDialogStateControlContext} from '#/state/dialogs'
+import {NavigationProp} from 'lib/routes/types'
 import {atoms as a} from '#/alf'
 import {Button, ButtonText} from '#/components/Button'
 import * as Dialog from '#/components/Dialog'
@@ -18,6 +20,7 @@ export function Dialogs() {
   const [shouldRenderUnmountTest, setShouldRenderUnmountTest] =
     React.useState(false)
   const unmountTestInterval = React.useRef<number>()
+  const navigation = useNavigation<NavigationProp>()
 
   const onUnmountTestStartPressWithClose = () => {
     setShouldRenderUnmountTest(true)
@@ -134,6 +137,16 @@ export function Dialogs() {
         <ButtonText>End Unmount Test</ButtonText>
       </Button>
 
+      <Button
+        variant="solid"
+        color="primary"
+        size="small"
+        onPress={() => navigation.navigate('SharedPreferencesTester')}
+        label="two"
+        testID="sharedPrefsTestOpenBtn">
+        <ButtonText>Open Shared Prefs Tester</ButtonText>
+      </Button>
+
       <Prompt.Outer control={prompt}>
         <Prompt.TitleText>This is a prompt</Prompt.TitleText>
         <Prompt.DescriptionText>