From 6185c7d312f9b1c3dd88cdfc887eb07fdd5210c2 Mon Sep 17 00:00:00 2001 From: s-r-x Date: Fri, 17 Sep 2021 10:42:35 +0500 Subject: [PATCH] feat(ui): remove show statuses pie preference --- .../src/components/Settings/Preferences/index.tsx | 13 ------------- packages/ui/src/stores/preferences.ts | 10 ---------- 2 files changed, 23 deletions(-) diff --git a/packages/ui/src/components/Settings/Preferences/index.tsx b/packages/ui/src/components/Settings/Preferences/index.tsx index 3daaaad..14b91db 100644 --- a/packages/ui/src/components/Settings/Preferences/index.tsx +++ b/packages/ui/src/components/Settings/Preferences/index.tsx @@ -10,8 +10,6 @@ export default function Preferences() { toggleConfirmDangerousActions, groupQueuesByPrefix, toggleGroupQueuesByPrefix, - showStatusesPieInDrawer, - toggleShowStatusesPieInDrawer, } = usePreferencesStore(); return (
@@ -26,17 +24,6 @@ export default function Preferences() { label="Confirm dangerous actions" /> - - - } - label="Show statuses pies in drawer" - /> - void; - changeShowStatusesPieInDrawer: (value: boolean) => void; - toggleShowStatusesPieInDrawer: () => void; toggleConfirmDangerousActions: () => void; toggleGroupQueuesByPrefix: () => void; }; export const usePreferencesStore = createStore( persist( (set) => ({ - showStatusesPieInDrawer: true, confirmDangerousActions: true, groupQueuesByPrefix: false, - changeShowStatusesPieInDrawer: (showStatusesPieInDrawer) => - set({ showStatusesPieInDrawer }), changeConfirmDangerousActions: (confirmDangerousActions) => set({ confirmDangerousActions }), toggleConfirmDangerousActions: () => set((state) => ({ confirmDangerousActions: !state.confirmDangerousActions, })), - toggleShowStatusesPieInDrawer: () => - set((state) => ({ - showStatusesPieInDrawer: !state.showStatusesPieInDrawer, - })), toggleGroupQueuesByPrefix: () => set((state) => ({ groupQueuesByPrefix: !state.groupQueuesByPrefix,