mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Update
This commit is contained in:
1 parent
ed4c14afb8
commit
acf9962503
7 files changed
+399
-57
No files matched your search
@@ -392,17 +392,26 @@ export default function ProfileScreen() {
|
||||
)}
|
||||
</GlassCard>
|
||||
|
||||
{/* Restore Purchases Link */}
|
||||
{/* Restore Purchases & Redeem Links */}
|
||||
{!hasPremiumAccess && (
|
||||
<TouchableOpacity
|
||||
style={styles.restoreLink}
|
||||
onPress={handleRestorePurchases}
|
||||
disabled={isPurchasing}
|
||||
>
|
||||
<Text style={styles.restoreLinkText}>
|
||||
{isPurchasing ? "Restoring..." : "Restore Purchases"}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
<View style={styles.subscriptionLinks}>
|
||||
<TouchableOpacity
|
||||
style={styles.restoreLink}
|
||||
onPress={handleRestorePurchases}
|
||||
disabled={isPurchasing}
|
||||
>
|
||||
<Text style={styles.restoreLinkText}>
|
||||
{isPurchasing ? "Restoring..." : "Restore Purchases"}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
<Text style={styles.linkDivider}>|</Text>
|
||||
<TouchableOpacity
|
||||
style={styles.restoreLink}
|
||||
onPress={() => router.push("/(app)/redeem")}
|
||||
>
|
||||
<Text style={styles.restoreLinkText}>Redeem Code</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
)}
|
||||
</Animated.View>
|
||||
|
||||
@@ -896,15 +905,23 @@ const styles = StyleSheet.create({
|
||||
color: colors.text,
|
||||
fontWeight: "600",
|
||||
},
|
||||
restoreLink: {
|
||||
subscriptionLinks: {
|
||||
flexDirection: "row",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
marginTop: spacing.sm,
|
||||
},
|
||||
restoreLink: {
|
||||
padding: spacing.sm,
|
||||
},
|
||||
restoreLinkText: {
|
||||
...typography.caption1,
|
||||
color: colors.textTertiary,
|
||||
},
|
||||
linkDivider: {
|
||||
...typography.caption1,
|
||||
color: colors.textTertiary,
|
||||
},
|
||||
versionContainer: {
|
||||
alignItems: "center",
|
||||
marginTop: spacing.lg,
|
||||
|
||||
Reference in new issue
Block a user