mobile: change sheet button positions

This commit is contained in:
Ammar Ahmed
2024-03-06 10:39:23 +05:00
parent 4c8a1be00c
commit d397e0053d
3 changed files with 20 additions and 22 deletions

View File

@@ -112,27 +112,9 @@ export const AddNotebookSheet = ({
paddingHorizontal: 12
}}
>
<View
style={{
flexDirection: "row",
width: "100%",
justifyContent: "space-between",
alignItems: "center"
}}
>
<Heading size={SIZE.lg}>
{notebook ? "Edit Notebook" : "New Notebook"}
</Heading>
<Button
title={notebook ? "Save" : "Add"}
type="accent"
height={40}
style={{
paddingHorizontal: 24
}}
onPress={onSaveChanges}
/>
</View>
<Heading size={SIZE.lg}>
{notebook ? "Edit Notebook" : "New Notebook"}
</Heading>
<Seperator />
@@ -167,6 +149,18 @@ export const AddNotebookSheet = ({
returnKeyType="next"
defaultValue={notebook ? notebook.description : ""}
/>
<Button
title={notebook ? "Save" : "Add"}
type="accent"
height={45}
fontSize={SIZE.md}
style={{
paddingHorizontal: 24,
width: "100%"
}}
onPress={onSaveChanges}
/>
</View>
);
};

View File

@@ -591,6 +591,7 @@ export default function ReminderSheet({
title="Save"
type="accent"
height={45}
fontSize={SIZE.md}
style={{
paddingHorizontal: 24,
marginTop: 10,

View File

@@ -269,7 +269,9 @@ export const Pressable = ({
alignItems: "center",
marginBottom: 0,
borderColor: pressed
? borderSelectedColor || borderColor
? customSelectedColor
? getColorLinearShade(customSelectedColor, 0.3, false)
: borderSelectedColor || borderColor
: borderColor || "transparent",
borderWidth: borderWidth
},
@@ -281,6 +283,7 @@ export const Pressable = ({
opacity,
primaryColor,
noborder,
customSelectedColor,
borderSelectedColor,
borderColor,
borderWidth,