mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat(balance sheet): add branch multi select.
This commit is contained in:
@@ -88,7 +88,7 @@ function BalanceSheetHeader({
|
||||
/>
|
||||
<Tab
|
||||
id="dimensions"
|
||||
title={'dimensions'}
|
||||
title={'Dimensions'}
|
||||
panel={<BalanceSheetHeaderDimensionsPanel />}
|
||||
/>
|
||||
</Tabs>
|
||||
|
||||
@@ -1,24 +1,33 @@
|
||||
import React from 'react';
|
||||
import { Button } from '@blueprintjs/core';
|
||||
import { BranchesMultiSelect } from 'components';
|
||||
|
||||
import { FormGroup, Classes } from '@blueprintjs/core';
|
||||
import { BranchMultiSelect, FieldHint, Row, Col } from 'components';
|
||||
import { FinancialHeaderLoadingSkeleton } from '../FinancialHeaderLoadingSkeleton';
|
||||
import { useBranches } from 'hooks/query';
|
||||
|
||||
/**
|
||||
* Balance sheet header dismension panel.
|
||||
* @returns
|
||||
*/
|
||||
function BalanceSheetHeaderDimensionsPanel() {
|
||||
// Fetches the branches list.
|
||||
const {
|
||||
isLoading: isBranchesLoading,
|
||||
isFetching: isBranchesFetching,
|
||||
data: branches,
|
||||
} = useBranches();
|
||||
const { isLoading: isBranchesLoading, data: branches } = useBranches();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<BranchesMultiSelect
|
||||
name={'branchesIds'}
|
||||
branches={branches}
|
||||
popoverProps={{ minimal: true }}
|
||||
/>
|
||||
</div>
|
||||
<Row>
|
||||
<Col xs={4}>
|
||||
<FormGroup
|
||||
label={'Branches'}
|
||||
labelInfo={<FieldHint />}
|
||||
className={Classes.FILL}
|
||||
>
|
||||
<BranchMultiSelect
|
||||
name={'branchesIds'}
|
||||
branches={branches}
|
||||
popoverProps={{ minimal: true }}
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user