mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
refactor(FE): Refactor master-data pages to simplify component rendering
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import AreasTable from '@/components/pages/master-data/area/AreasTable';
|
||||
|
||||
const Nonstock = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<AreasTable />
|
||||
</section>
|
||||
);
|
||||
return <AreasTable />;
|
||||
};
|
||||
|
||||
export default Nonstock;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import BanksTable from '@/components/pages/master-data/bank/BanksTable';
|
||||
|
||||
const Bank = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<BanksTable />
|
||||
</section>
|
||||
);
|
||||
return <BanksTable />;
|
||||
};
|
||||
|
||||
export default Bank;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import CustomersTable from '@/components/pages/master-data/customer/CustomersTable';
|
||||
|
||||
const Customer = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<CustomersTable />
|
||||
</section>
|
||||
);
|
||||
return <CustomersTable />;
|
||||
};
|
||||
|
||||
export default Customer;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import FlockTable from '@/components/pages/master-data/flock/FlocksTable';
|
||||
|
||||
const Flock = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<FlockTable />
|
||||
</section>
|
||||
);
|
||||
return <FlockTable />;
|
||||
};
|
||||
|
||||
export default Flock;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import KandangsTable from '@/components/pages/master-data/kandang/KandangsTable';
|
||||
|
||||
const Nonstock = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<KandangsTable />
|
||||
</section>
|
||||
);
|
||||
return <KandangsTable />;
|
||||
};
|
||||
|
||||
export default Nonstock;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import LocationsTable from '@/components/pages/master-data/location/LocationsTable';
|
||||
|
||||
const Nonstock = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<LocationsTable />
|
||||
</section>
|
||||
);
|
||||
return <LocationsTable />;
|
||||
};
|
||||
|
||||
export default Nonstock;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import NonstocksTable from '@/components/pages/master-data/nonstock/NonstocksTable';
|
||||
|
||||
const Nonstock = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<NonstocksTable />
|
||||
</section>
|
||||
);
|
||||
return <NonstocksTable />;
|
||||
};
|
||||
|
||||
export default Nonstock;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import ProductCategoryTable from '@/components/pages/master-data/product-category/ProductCategoryTable';
|
||||
|
||||
const ProductCategory = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<ProductCategoryTable />
|
||||
</section>
|
||||
);
|
||||
return <ProductCategoryTable />;
|
||||
};
|
||||
|
||||
export default ProductCategory;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import ProductionStandardTable from '@/components/pages/master-data/production-standard/ProductionStandardTable';
|
||||
|
||||
const ProductionStandardPage = () => {
|
||||
return (
|
||||
<div className='w-full'>
|
||||
<ProductionStandardTable />
|
||||
</div>
|
||||
);
|
||||
return <ProductionStandardTable />;
|
||||
};
|
||||
|
||||
export default ProductionStandardPage;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import SuppliersTable from '@/components/pages/master-data/supplier/SupplierTable';
|
||||
|
||||
const Supplier = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<SuppliersTable />
|
||||
</section>
|
||||
);
|
||||
return <SuppliersTable />;
|
||||
};
|
||||
|
||||
export default Supplier;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import UomsTable from '@/components/pages/master-data/uom/UomsTable';
|
||||
|
||||
const Nonstock = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<UomsTable />
|
||||
</section>
|
||||
);
|
||||
return <UomsTable />;
|
||||
};
|
||||
|
||||
export default Nonstock;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import WarehousesTable from '@/components/pages/master-data/warehouse/WarehousesTable';
|
||||
|
||||
const Warehouse = () => {
|
||||
return (
|
||||
<section className='w-full p-4'>
|
||||
<WarehousesTable />
|
||||
</section>
|
||||
);
|
||||
return <WarehousesTable />;
|
||||
};
|
||||
|
||||
export default Warehouse;
|
||||
|
||||
Reference in New Issue
Block a user