diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-14 13:03:43 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-03-14 13:03:43 -0500 |
commit | acf0f80de2a7a96ad8ee58dbf6aa8cb59859c9e8 (patch) | |
tree | ea84f4665976b847ea7d32190324f47c1e0b414f /src/view/com/auth/create/StepHeader.tsx | |
parent | d55780f5c333208eaac1d5240929959b131e8787 (diff) | |
download | voidsky-acf0f80de2a7a96ad8ee58dbf6aa8cb59859c9e8.tar.zst |
Rework account creation and login views
Diffstat (limited to 'src/view/com/auth/create/StepHeader.tsx')
-rw-r--r-- | src/view/com/auth/create/StepHeader.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/view/com/auth/create/StepHeader.tsx b/src/view/com/auth/create/StepHeader.tsx new file mode 100644 index 000000000..8c852b640 --- /dev/null +++ b/src/view/com/auth/create/StepHeader.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import {StyleSheet, View} from 'react-native' +import {Text} from 'view/com/util/text/Text' +import {usePalette} from 'lib/hooks/usePalette' + +export function StepHeader({step, title}: {step: string; title: string}) { + const pal = usePalette('default') + return ( + <View style={styles.container}> + <Text type="lg" style={pal.textLight}> + {step === '3' ? 'Last step!' : <>Step {step} of 3</>} + </Text> + <Text type="title-xl">{title}</Text> + </View> + ) +} + +const styles = StyleSheet.create({ + container: { + marginBottom: 20, + }, +}) |