@towsila/expo-ui-library 4.8.0 → 4.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import Input from "../ui/input";
|
|
|
7
7
|
import ScreenHeader from "../ui/PageTopBar";
|
|
8
8
|
import { Fonts, textSize } from "../../tokens/typography";
|
|
9
9
|
import SharpButton from "../ui/sharpButton";
|
|
10
|
+
import TemplateSubPage from "../reusable/templateSubPage";
|
|
10
11
|
|
|
11
12
|
interface Props {
|
|
12
13
|
title: string;
|
|
@@ -24,7 +25,7 @@ interface Props {
|
|
|
24
25
|
showButton: boolean; // e.g. isChanged
|
|
25
26
|
loading?: boolean;
|
|
26
27
|
onSubmit: () => void;
|
|
27
|
-
onBack
|
|
28
|
+
onBack: () => void;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
const cardStyle = (colors: any) => ({
|
|
@@ -65,14 +66,8 @@ export default function ProfileLayout({
|
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
return (
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
<ScrollView
|
|
71
|
-
style={{ flex: 1 }}
|
|
72
|
-
contentContainerStyle={{ gap: 30, paddingBottom: 40 }}
|
|
73
|
-
showsVerticalScrollIndicator={false}
|
|
74
|
-
keyboardShouldPersistTaps="handled"
|
|
75
|
-
>
|
|
69
|
+
<TemplateSubPage title={title} text={""} onBack={onBack}>
|
|
70
|
+
|
|
76
71
|
<View style={{ gap: 20 }}>
|
|
77
72
|
<Text style={{ fontSize: textSize.sm, fontFamily: Fonts.montserrat.regular, color: colors.text.placeholder, textAlign: isRTL ? "left" : "right" }}>
|
|
78
73
|
{email}
|
|
@@ -96,7 +91,6 @@ export default function ProfileLayout({
|
|
|
96
91
|
<SharpButton text={button} textColor={colors.text.primary} bgColor={colors.primary} onPress={onSubmit} loading={loading} />
|
|
97
92
|
</View>
|
|
98
93
|
)}
|
|
99
|
-
</
|
|
100
|
-
</View>
|
|
94
|
+
</TemplateSubPage>
|
|
101
95
|
);
|
|
102
96
|
}
|