Menu Supplier

This commit is contained in:
2021-12-15 18:30:27 +07:00
parent 08b82c55ab
commit 4df9f7214e
7 changed files with 287 additions and 261 deletions

View File

@@ -18,8 +18,8 @@ export const Subcategory = observer(() => {
const init = async () => {
try {
setIsLoading(true);
//await store.product.getDataCategories();
await store.subcategory.getDataSubCategories();
//await store.category.getData();
await store.subcategory.getData();
setIsLoading(false);
} catch (e) {
setIsLoading(false);
@@ -65,12 +65,11 @@ export const Subcategory = observer(() => {
marginBottom: store.ui.mediaQuery.isMobile ? 10 : 0,
}}
/>
<Button onClick={() => (store.category.visibleModalCategory = true)}>
<Button onClick={() => (store.subcategory.visibleModalSubcategory= true)}>
<PlusSquareOutlined /> New
</Button>
</Col>
</Row>
<Tabs onChange={handleChangeTabPane} size="default" tabBarGutter="50">
<TabPane tab="Sub-Category" key="1">
<SubcategoryComponent/>