mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +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"
|
||||
];
|
||||
|
||||
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 = [
|
||||
"notebooks",
|
||||
"add-reminder",
|
||||
@@ -202,6 +196,12 @@ export const Items = ({ item, buttons, close }) => {
|
||||
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
|
||||
.filter((item) => bottomBarItemsList.indexOf(item.id) > -1)
|
||||
.sort((a, b) =>
|
||||
|
||||
Reference in New Issue
Block a user