stripe embedded and other fixes

This commit is contained in:
Thomas Demirdjian
2025-11-18 11:40:39 +01:00
parent 016f7c27ac
commit 7ab8685180
17 changed files with 2346 additions and 2504 deletions
+19 -1
View File
@@ -27,6 +27,21 @@ const WebAlertModal = ({ title, description, options }) => {
cancelOption?.onPress();
};
const renderDescription = () => {
if (
typeof description === "string" ||
typeof description === "number"
) {
return <Text style={styles.description}>{description}</Text>;
}
if (!description) {
return null;
}
return <View style={styles.customDescription}>{description}</View>;
};
return (
<PortalProvider>
<Overlay
@@ -42,7 +57,7 @@ const WebAlertModal = ({ title, description, options }) => {
>
<BlurView intensity={100} tint="dark" style={styles.modalContainer}>
<Text style={styles.title}>{title}</Text>
<Text style={styles.description}>{description}</Text>
{renderDescription()}
<View style={styles.divider} />
<View
style={hasSecondaryAction ? styles.actionsRow : styles.actions}
@@ -152,6 +167,9 @@ const styles = StyleSheet.create({
backgroundColor: "rgba(255,255,255,0.08)",
marginVertical: 0,
},
customDescription: {
width: "100%",
},
actionsRow: {
flexDirection: "row",
gap: gutters,