mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +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(
|
||||
db.settings.getGroupOptions(type)
|
||||
);
|
||||
|
||||
const updateGroupOptions = async (_groupOptions) => {
|
||||
await db.settings.setGroupOptions(type, _groupOptions);
|
||||
|
||||
@@ -141,7 +140,8 @@ const Sort = ({ type, screen }) => {
|
||||
/>
|
||||
) : (
|
||||
Object.keys(SORT).map((item) =>
|
||||
item === "title" && groupOptions.groupBy !== "none" ? null : (
|
||||
(item === "title" && groupOptions.groupBy !== "none") ||
|
||||
(screen === "Tags" && item === "dateEdited") ? null : (
|
||||
<Button
|
||||
key={item}
|
||||
type={groupOptions.sortBy === item ? "grayBg" : "gray"}
|
||||
|
||||
@@ -35,6 +35,7 @@ export const GROUP = {
|
||||
};
|
||||
|
||||
export const SORT = {
|
||||
dateModified: "Date modified",
|
||||
dateEdited: "Date edited",
|
||||
dateCreated: "Date created",
|
||||
title: "Title"
|
||||
|
||||
Reference in New Issue
Block a user