Skip to content

Commit

Permalink
feat(client): add styles to sign up screen
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh committed Feb 8, 2025
1 parent 3c620e8 commit fc8b32e
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions apps/client/app/auth/sign-up.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import * as React from 'react'
import { Button, Text, TextInput, View } from 'react-native'
import { Text, TextInput, View } from 'react-native'
import { useRouter } from 'expo-router'
import { Button } from '@/components/ui/button'
import { Container } from '@/components/ui/Container'
import { Input } from '@/components/ui/input'
import { useSignUp } from '@clerk/clerk-expo'

export default function SignUpScreen() {
Expand Down Expand Up @@ -78,23 +81,30 @@ export default function SignUpScreen() {
}

return (
<View>
<>
<Text>Sign up</Text>
<TextInput
<Container className="flex-1 bg-background">
<View className="flex-1">
<View>
<Button title="back" onPress={() => router.back()} />
</View>
<View className="flex-1 items-center justify-center">
<Text className="text-3xl text-primary">Sign up</Text>
</View>
</View>
<View className="gap-4">
<Input
autoCapitalize="none"
value={emailAddress}
placeholder="Enter email"
onChangeText={(email) => setEmailAddress(email)}
/>
<TextInput
<Input
value={password}
placeholder="Enter password"
secureTextEntry={true}
onChangeText={(password) => setPassword(password)}
/>
<Button title="Continue" onPress={onSignUpPress} />
</>
</View>
</View>
</Container>
)
}

0 comments on commit fc8b32e

Please sign in to comment.