From e949b1b0c709248baaf7f697a013caceff361b1a Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Thu, 23 Sep 2021 10:37:54 +0200 Subject: [PATCH] BIG-5: feat switching between compact and medium table row size. --- .../Dashboard/DashboardRowsHeightButton.js | 36 ---------- .../DashboardRowsHeightButton/index.js | 70 +++++++++++++++++++ .../style.module.scss | 12 ++++ src/components/DataTable.js | 1 + src/components/Datatable/TableWrapper.js | 11 ++- src/containers/Accounts/AccountsActionsBar.js | 4 ++ src/containers/Items/ItemsActionsBar.js | 26 ++++++- src/containers/Items/ItemsDataTable.js | 11 +-- .../Settings/withSettingsActions.js | 2 + src/static/json/icons.js | 33 ++++++--- src/store/settings/settings.actions.js | 7 ++ src/store/settings/settings.reducer.js | 31 +++++++- src/store/settings/settings.type.js | 1 + 13 files changed, 190 insertions(+), 55 deletions(-) delete mode 100644 src/components/Dashboard/DashboardRowsHeightButton.js create mode 100644 src/components/Dashboard/DashboardRowsHeightButton/index.js create mode 100644 src/components/Dashboard/DashboardRowsHeightButton/style.module.scss diff --git a/src/components/Dashboard/DashboardRowsHeightButton.js b/src/components/Dashboard/DashboardRowsHeightButton.js deleted file mode 100644 index 85c72f749..000000000 --- a/src/components/Dashboard/DashboardRowsHeightButton.js +++ /dev/null @@ -1,36 +0,0 @@ -import React from 'react'; -import { - Button, - PopoverInteractionKind, - Popover, - Menu, - MenuItem, - MenuDivider, - Classes -} from '@blueprintjs/core'; -import { Icon } from 'components'; - -export function DashboardRowsHeightButton() { - return ( - - - - - - } - placement="bottom-start" - modifiers={{ - offset: { offset: '0, 4' }, - }} - interactionKind={PopoverInteractionKind.CLICK} - > -