From 62b032ab1948b5b2b3450900a44ba3ba69250fa6 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 4 Aug 2022 21:37:18 -0700 Subject: [PATCH] Refactored dashboard sort logic. --- components/pages/Dashboard.js | 4 ++-- components/pages/DashboardEdit.js | 24 +++++++++---------- components/pages/WebsiteList.js | 13 ++++++---- .../settings/DashboardSettingsButton.js | 6 +---- lib/array.js | 7 ++++++ lib/format.js | 11 --------- lib/web.js | 2 -- store/dashboard.js | 5 ++-- 8 files changed, 32 insertions(+), 40 deletions(-) diff --git a/components/pages/Dashboard.js b/components/pages/Dashboard.js index f2384487..bd6a8b3a 100644 --- a/components/pages/Dashboard.js +++ b/components/pages/Dashboard.js @@ -40,8 +40,8 @@ export default function Dashboard() {
{formatMessage(messages.dashboard)}
{!editing && } - {editing && } - {!editing && } + {editing && } + {!editing && } {max < data.length && (