@towsila/expo-ui-library 4.13.1 → 4.14.0
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
|
@@ -15,6 +15,7 @@ interface Props {
|
|
|
15
15
|
error?: string;
|
|
16
16
|
onBack: () => void;
|
|
17
17
|
loading?: boolean;
|
|
18
|
+
footer?: React.ReactNode;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export default function TemplateSubPage({
|
|
@@ -26,6 +27,7 @@ export default function TemplateSubPage({
|
|
|
26
27
|
error,
|
|
27
28
|
onBack,
|
|
28
29
|
loading,
|
|
30
|
+
footer,
|
|
29
31
|
}: Props) {
|
|
30
32
|
const { colors } = useAppTheme();
|
|
31
33
|
|
|
@@ -62,7 +64,7 @@ export default function TemplateSubPage({
|
|
|
62
64
|
{children}
|
|
63
65
|
</View>
|
|
64
66
|
</ScrollView>
|
|
65
|
-
|
|
67
|
+
{footer ? <View style={{ marginTop: 12 }}>{footer}</View> : null}
|
|
66
68
|
{buttonText && (
|
|
67
69
|
<View style={{ marginTop: 16 }}>
|
|
68
70
|
<SharpButton
|
|
@@ -107,6 +107,7 @@ export default function ProfileLayout({
|
|
|
107
107
|
buttonText={showButton ? button : undefined}
|
|
108
108
|
handleFunction={onSubmit}
|
|
109
109
|
loading={loading}
|
|
110
|
+
footer={footer}
|
|
110
111
|
>
|
|
111
112
|
<View style={{ gap: 10 }}>
|
|
112
113
|
<Text
|
|
@@ -141,8 +142,6 @@ export default function ProfileLayout({
|
|
|
141
142
|
|
|
142
143
|
{extraCard ? <View style={cardStyle(colors)}>{extraCard}</View> : null}
|
|
143
144
|
</View>
|
|
144
|
-
|
|
145
|
-
{footer}
|
|
146
145
|
</TemplateSubPage>
|
|
147
146
|
);
|
|
148
147
|
}
|