mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
mobile: remove dateEdited from sort options in Tags
screen
This commit is contained in:
@@ -35,7 +35,6 @@ const Sort = ({ type, screen }) => {
|
|||||||
const [groupOptions, setGroupOptions] = useState(
|
const [groupOptions, setGroupOptions] = useState(
|
||||||
db.settings.getGroupOptions(type)
|
db.settings.getGroupOptions(type)
|
||||||
);
|
);
|
||||||
|
|
||||||
const updateGroupOptions = async (_groupOptions) => {
|
const updateGroupOptions = async (_groupOptions) => {
|
||||||
await db.settings.setGroupOptions(type, _groupOptions);
|
await db.settings.setGroupOptions(type, _groupOptions);
|
||||||
|
|
||||||
@@ -141,7 +140,8 @@ const Sort = ({ type, screen }) => {
|
|||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
Object.keys(SORT).map((item) =>
|
Object.keys(SORT).map((item) =>
|
||||||
item === "title" && groupOptions.groupBy !== "none" ? null : (
|
(item === "title" && groupOptions.groupBy !== "none") ||
|
||||||
|
(screen === "Tags" && item === "dateEdited") ? null : (
|
||||||
<Button
|
<Button
|
||||||
key={item}
|
key={item}
|
||||||
type={groupOptions.sortBy === item ? "grayBg" : "gray"}
|
type={groupOptions.sortBy === item ? "grayBg" : "gray"}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export const GROUP = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const SORT = {
|
export const SORT = {
|
||||||
|
dateModified: "Date modified",
|
||||||
dateEdited: "Date edited",
|
dateEdited: "Date edited",
|
||||||
dateCreated: "Date created",
|
dateCreated: "Date created",
|
||||||
title: "Title"
|
title: "Title"
|
||||||
|
|||||||
Reference in New Issue
Block a user