style(membership): show the expiry date above the purchase options

This commit is contained in:
ponas committed 2026-10-29 21:50:27 +01:00
1 parent 5ce161225f
commit c957cff31b
1 file changed
+9 -2
+9 -2
View File
@@ -117,6 +117,7 @@ const PurchaseButton = ({
return ( return (
<View> <View>
<View style={styles.divider} />
<Text style={[theme.text, styles.selectText]}>Velg medlemskapstype</Text> <Text style={[theme.text, styles.selectText]}>Velg medlemskapstype</Text>
<View style={styles.radioForm}> <View style={styles.radioForm}>
<RadioButton data={options} onSelect={onSelect} defaultValue={defaultValue} /> <RadioButton data={options} onSelect={onSelect} defaultValue={defaultValue} />
@@ -271,6 +272,7 @@ const Proof = ({ fetchUser, isRefetching }: ProofProps) => {
<Logo user={user} /> <Logo user={user} />
<MembershipName user={user} /> <MembershipName user={user} />
<MembershipStatus user={user} onMembershipPress={onMembershipPress} /> <MembershipStatus user={user} onMembershipPress={onMembershipPress} />
<MembershipValidTo user={user} />
<PurchaseButton <PurchaseButton
user={user} user={user}
paymentLoading={paymentLoading} paymentLoading={paymentLoading}
@@ -286,7 +288,6 @@ const Proof = ({ fetchUser, isRefetching }: ProofProps) => {
}} }}
setMembershipTypeSlug={setMembershipTypeSlug} setMembershipTypeSlug={setMembershipTypeSlug}
/> />
<MembershipValidTo user={user} />
</View> </View>
</ScrollView> </ScrollView>
</View> </View>
@@ -394,10 +395,16 @@ const styles = StyleSheet.create({
marginTop: 16, marginTop: 16,
marginBottom: 20, marginBottom: 20,
}, },
// Separates the current membership above from buying a new one
divider: {
borderBottomWidth: 1,
borderBottomColor: theme.colors.neufPink,
marginTop: 24,
},
selectText: { selectText: {
...theme.typography.h3, ...theme.typography.h3,
textAlign: 'center', textAlign: 'center',
marginTop: 30, marginTop: 24,
}, },
container: { container: {
flex: 1, flex: 1,