mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat(branches): fix branches provider.
This commit is contained in:
@@ -3,7 +3,6 @@ import intl from 'react-intl-universal';
|
||||
|
||||
import BranchesDataTable from './BranchesDataTable';
|
||||
import BranchesEmptyStatus from './BranchesEmptyStatus';
|
||||
import { Choose } from 'components';
|
||||
|
||||
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
|
||||
import { useBranchesContext } from './BranchesProvider';
|
||||
@@ -21,14 +20,9 @@ function Branches({
|
||||
}, [changePreferencesPageTitle]);
|
||||
|
||||
return (
|
||||
<Choose>
|
||||
<Choose.When condition={isEmptyStatus}>
|
||||
<BranchesEmptyStatus />
|
||||
</Choose.When>
|
||||
<Choose.Otherwise>
|
||||
<BranchesDataTable />
|
||||
</Choose.Otherwise>
|
||||
</Choose>
|
||||
<React.Fragment>
|
||||
{isEmptyStatus ? <BranchesEmptyStatus /> : <BranchesDataTable />}
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
export default compose(withDashboardActions)(Branches);
|
||||
|
||||
Reference in New Issue
Block a user