mobile: fix sorting sheet in reminders

This commit is contained in:
Ammar Ahmed
2025-03-10 11:37:26 +05:00
committed by Abdullah Atta
parent 856a9b16e9
commit 076312da7a
2 changed files with 17 additions and 8 deletions

View File

@@ -77,7 +77,11 @@ export const SectionHeader = React.memo<
justifyContent: "space-between",
borderBottomWidth: 1,
borderColor: colors.primary.border,
paddingTop: DefaultAppStyles.GAP_VERTICAL_SMALL
paddingBottom: 1,
paddingTop:
index === 0
? DefaultAppStyles.GAP_VERTICAL
: DefaultAppStyles.GAP_VERTICAL_SMALL
}}
>
<Pressable
@@ -125,7 +129,13 @@ export const SectionHeader = React.memo<
onPress={() => {
if (!screen) return;
presentSheet({
component: <Sort screen={screen} type={dataType} />
component: (
<Sort
screen={screen}
type={dataType}
hideGroupOptions={screen === "Reminders"}
/>
)
});
}}
style={{

View File

@@ -98,8 +98,7 @@ const Sort = ({
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
paddingHorizontal: DefaultAppStyles.GAP,
paddingVertical: DefaultAppStyles.GAP_VERTICAL
paddingHorizontal: DefaultAppStyles.GAP
}}
>
<Heading
@@ -164,10 +163,10 @@ const Sort = ({
style={{
width: "100%",
justifyContent: "space-between",
height: 40,
flexDirection: "row",
borderRadius: 0,
paddingHorizontal: DefaultAppStyles.GAP
paddingHorizontal: DefaultAppStyles.GAP,
paddingVertical: DefaultAppStyles.GAP_VERTICAL
}}
onPress={async () => {
const _groupOptions: GroupOptions = {
@@ -231,10 +230,10 @@ const Sort = ({
style={{
width: "100%",
justifyContent: "space-between",
height: 40,
flexDirection: "row",
borderRadius: 0,
paddingHorizontal: DefaultAppStyles.GAP
paddingHorizontal: DefaultAppStyles.GAP,
paddingVertical: DefaultAppStyles.GAP_VERTICAL
}}
onPress={async () => {
const _groupOptions: GroupOptions = {