mobile: fix publish button hidden on tablet

This commit is contained in:
Ammar Ahmed
2024-03-15 11:04:04 +05:00
committed by Abdullah Atta
parent 728b22f337
commit f9db4d49b1

View File

@@ -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) =>