From c77009b921ae4520522a96504c6872dded1e949e Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Sun, 13 Feb 2022 22:13:03 +0200 Subject: [PATCH] fix(invoice): Skeleton warehouses & branch loading & style action top bar. --- src/components/CustomSelectList.js | 12 +++++++--- .../Invoices/InvoiceForm/BaseCurrency.js | 2 +- .../Invoices/InvoiceForm/InvoiceFormTopBar.js | 23 +++++++++++-------- src/style/pages/Dashboard/Dashboard.scss | 8 ++++--- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/components/CustomSelectList.js b/src/components/CustomSelectList.js index 2b0ad4bad..36e783f6b 100644 --- a/src/components/CustomSelectList.js +++ b/src/components/CustomSelectList.js @@ -1,10 +1,13 @@ import React from 'react'; +import styled from 'styled-components'; import { Button, MenuItem, PopoverInteractionKind, Position, + Classes, } from '@blueprintjs/core'; +import clsx from 'classnames'; import { defaultTo } from 'lodash'; import { Select } from '@blueprintjs/select'; import { FormattedMessage as T, Icon } from 'components'; @@ -18,7 +21,8 @@ export default function CustomSelectList({ items, initialItemId, selectedItemId, - text, + loading = false, + defaultSelectText, onItemSelected, buttonProps, }) { @@ -85,17 +89,19 @@ export default function CustomSelectList({ offset: { offset: '0, 4' }, }, }} + className={clsx({ [Classes.SKELETON]: loading })} >