about summary refs log tree commit diff
path: root/src/view/com/auth/create/Step2.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-14 13:30:20 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-14 13:30:20 -0500
commit617d93fb486ad79b6a0e87ba54b7f94f623684c1 (patch)
treebac7b04d94bb65fb4bc0f597add34a5926a184de /src/view/com/auth/create/Step2.tsx
parentb838c786e02d676209c2e41c2d0113c932d8456d (diff)
downloadvoidsky-617d93fb486ad79b6a0e87ba54b7f94f623684c1.tar.zst
Add waitlist signup
Diffstat (limited to 'src/view/com/auth/create/Step2.tsx')
-rw-r--r--src/view/com/auth/create/Step2.tsx13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/view/com/auth/create/Step2.tsx b/src/view/com/auth/create/Step2.tsx
index 1f3162880..f4f399abd 100644
--- a/src/view/com/auth/create/Step2.tsx
+++ b/src/view/com/auth/create/Step2.tsx
@@ -11,9 +11,16 @@ import {usePalette} from 'lib/hooks/usePalette'
 import {TextInput} from '../util/TextInput'
 import {Policies} from './Policies'
 import {ErrorMessage} from 'view/com/util/error/ErrorMessage'
+import {useStores} from 'state/index'
 
 export const Step2 = observer(({model}: {model: CreateAccountModel}) => {
   const pal = usePalette('default')
+  const store = useStores()
+
+  const onPressWaitlist = React.useCallback(() => {
+    store.shell.openModal({name: 'waitlist'})
+  }, [store])
+
   return (
     <View>
       <StepHeader step="2" title="Your account" />
@@ -36,7 +43,11 @@ export const Step2 = observer(({model}: {model: CreateAccountModel}) => {
       {!model.inviteCode && model.isInviteCodeRequired ? (
         <Text>
           Don't have an invite code?{' '}
-          <TextLink text="Join the waitlist" href="#" style={pal.link} /> to try
+          <TouchableOpacity onPress={onPressWaitlist}>
+            <Text type="xl" style={pal.link}>
+              Join the waitlist
+            </Text>
+          </TouchableOpacity>{' '}
           the beta before it's publicly available.
         </Text>
       ) : (