feat(trial balance sheet): branch multi select.

This commit is contained in:
elforjani13
2022-02-16 19:35:35 +02:00
parent c7f6b70d14
commit c01fa85198
2 changed files with 42 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
import React from 'react';
import styled from 'styled-components';
import intl from 'react-intl-universal';
import { FormGroup, Classes } from '@blueprintjs/core';
import { BranchMultiSelect, Row, Col } from 'components';
import { useBranches } from 'hooks/query';
/**
* trial balance sheet header dismension panel.
* @returns
*/
export default function TrialBalanceSheetHeaderDimensionsPanel() {
// Fetches the branches list.
const { isLoading: isBranchesLoading, data: branches } = useBranches();
return (
<Row>
<Col xs={4}>
<FormGroup
label={intl.get('branches_multi_select.label')}
className={Classes.FILL}
>
<BranchMultiSelect name={'branchesIds'} branches={branches} />
</FormGroup>
</Col>
</Row>
);
}