mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-23 08:10:32 +00:00
feat(branches& warehouses): add empty status.
This commit is contained in:
24
src/containers/Preferences/Warehouses/WarehousesList.js
Normal file
24
src/containers/Preferences/Warehouses/WarehousesList.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import intl from 'react-intl-universal';
|
||||
import Warehouses from './Warehouses';
|
||||
import WarehousesEmptyStatus from './WarehousesEmptyStatus';
|
||||
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
function WarehousesList({
|
||||
// #withDashboardActions
|
||||
changePreferencesPageTitle,
|
||||
}) {
|
||||
React.useEffect(() => {
|
||||
changePreferencesPageTitle(intl.get('warehouses.label'));
|
||||
}, [changePreferencesPageTitle]);
|
||||
|
||||
// if () {
|
||||
// return <WarehousesEmptyStatus />;
|
||||
// }
|
||||
|
||||
return <Warehouses />;
|
||||
}
|
||||
|
||||
export default compose(withDashboardActions)(WarehousesList);
|
||||
Reference in New Issue
Block a user