style(membership): show the expiry date above the purchase options
This commit is contained in:
1 file changed
+9
-2
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user