mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
mobile: fix publish button hidden on tablet
This commit is contained in:
committed by
Abdullah Atta
parent
728b22f337
commit
f9db4d49b1
@@ -175,12 +175,6 @@ export const Items = ({ item, buttons, close }) => {
|
|||||||
"lock-unlock"
|
"lock-unlock"
|
||||||
];
|
];
|
||||||
|
|
||||||
const topBarItems = data
|
|
||||||
.filter((item) => topBarItemsList.indexOf(item.id) > -1)
|
|
||||||
.sort((a, b) =>
|
|
||||||
topBarItemsList.indexOf(a.id) > topBarItemsList.indexOf(b.id) ? 1 : -1
|
|
||||||
);
|
|
||||||
|
|
||||||
const bottomBarItemsList = [
|
const bottomBarItemsList = [
|
||||||
"notebooks",
|
"notebooks",
|
||||||
"add-reminder",
|
"add-reminder",
|
||||||
@@ -202,6 +196,12 @@ export const Items = ({ item, buttons, close }) => {
|
|||||||
bottomBarItemsList.splice(4, 0, "publish");
|
bottomBarItemsList.splice(4, 0, "publish");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const topBarItems = data
|
||||||
|
.filter((item) => topBarItemsList.indexOf(item.id) > -1)
|
||||||
|
.sort((a, b) =>
|
||||||
|
topBarItemsList.indexOf(a.id) > topBarItemsList.indexOf(b.id) ? 1 : -1
|
||||||
|
);
|
||||||
|
|
||||||
const bottomGridItems = data
|
const bottomGridItems = data
|
||||||
.filter((item) => bottomBarItemsList.indexOf(item.id) > -1)
|
.filter((item) => bottomBarItemsList.indexOf(item.id) > -1)
|
||||||
.sort((a, b) =>
|
.sort((a, b) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user