mobile: remove dateEdited from sort options in Tags

screen
This commit is contained in:
ammarahm-ed
2022-10-18 17:46:06 +05:00
parent f6b095ffb8
commit 604d2c4ee9
2 changed files with 3 additions and 2 deletions

View File

@@ -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"}

View File

@@ -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"