mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 15:39:44 +01:00
mobile: fix sorting sheet in reminders
This commit is contained in:
committed by
Abdullah Atta
parent
856a9b16e9
commit
076312da7a
@@ -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={{
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user