Skip to content

Commit

Permalink
Redesign SignUp: Restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Stronkness committed Oct 3, 2024
1 parent 055665f commit 09ab3b0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions screens/auth/SignUpScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,11 @@ export default function SignUpScreen({ navigation }: SignUpScreenParams) {
onPress={(value) => setCheckboxState(!value)}
style={invalidSignUp ? styles.checkboxError : styles.checkbox}
/>
<Pressable
style={styles.policyContainer}
onPress={() =>
Linking.openURL("https://www.arkadtlth.se/privacypolicy")
}
>
<ArkadText style={styles.loginText} text={"See privacy policy"} />
</Pressable>

{loading ? (
<ActivityIndicator />
) : (
<ArkadButton onPress={signUp} style={{}}>
<ArkadButton onPress={signUp} style={{ marginTop: 20 }}>
<ArkadText text="Sign Up" style={{}} />
</ArkadButton>
)}
Expand All @@ -134,6 +127,15 @@ export default function SignUpScreen({ navigation }: SignUpScreenParams) {
text={"Already have an account? Login here!"}
/>
</Pressable>

<Pressable
style={styles.policyContainer}
onPress={() =>
Linking.openURL("https://www.arkadtlth.se/privacypolicy")
}
>
<ArkadText style={styles.loginText} text={"See privacy policy"} />
</Pressable>
</View>
</ScrollView>
);
Expand All @@ -144,11 +146,13 @@ const styles = StyleSheet.create({
fontSize: 18,
color: Colors.white,
marginLeft: 12,
marginTop: 4,
},
checkboxError: {
fontSize: 18,
color: Colors.lightRed,
marginLeft: 12,
marginTop: 4,
},
container: {
flex: 1,
Expand All @@ -169,11 +173,10 @@ const styles = StyleSheet.create({
fontWeight: "bold",
},
loginContainer: {
marginTop: 20,
marginTop: 0,
padding: 16,
},
policyContainer: {
padding: 16,
margin: 5,
},
loginText: {
Expand Down

0 comments on commit 09ab3b0

Please sign in to comment.