From f9db4d49b11e323177e66c21a2c7d44a0e4799e2 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 15 Mar 2024 11:04:04 +0500 Subject: [PATCH] mobile: fix publish button hidden on tablet --- apps/mobile/app/components/properties/items.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/mobile/app/components/properties/items.js b/apps/mobile/app/components/properties/items.js index e5adea536..6fce5846e 100644 --- a/apps/mobile/app/components/properties/items.js +++ b/apps/mobile/app/components/properties/items.js @@ -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) =>