From 76bdb6b1d61db7e03ada042f69b8678cce41270b Mon Sep 17 00:00:00 2001 From: Chris Walsh Date: Sat, 23 Jul 2022 23:07:53 -0700 Subject: [PATCH] Add reset order button to website settings --- components/settings/WebsiteSettings.js | 18 +++++++++++++++--- components/settings/WebsiteSettings.module.css | 6 ++++++ lang/en-US.json | 1 + 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/components/settings/WebsiteSettings.js b/components/settings/WebsiteSettings.js index 4c39cf0c..46f953d3 100644 --- a/components/settings/WebsiteSettings.js +++ b/components/settings/WebsiteSettings.js @@ -182,6 +182,13 @@ export default function WebsiteSettings() { }); } + function resetWebsiteOrder() { + setDashboard({ + ...store, + websiteOrdering: {}, + }); + } + if (!data) { return null; } @@ -207,9 +214,14 @@ export default function WebsiteSettings() {
- +
+ + +