fix: inventory
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import OrderList from '@views/apps/ecommerce/orders/list'
|
||||
|
||||
// Data Imports
|
||||
import { getEcommerceData } from '@/app/server/actions'
|
||||
|
||||
/**
|
||||
* ! If you need data using an API call, uncomment the below API code, update the `process.env.API_URL` variable in the
|
||||
@@ -23,10 +22,8 @@ import { getEcommerceData } from '@/app/server/actions'
|
||||
} */
|
||||
|
||||
const OrdersListPage = async () => {
|
||||
// Vars
|
||||
const data = await getEcommerceData()
|
||||
|
||||
return <OrderList orderData={data?.orderData} />
|
||||
return <OrderList />
|
||||
}
|
||||
|
||||
export default OrdersListPage
|
||||
|
||||
@@ -6,7 +6,6 @@ import ProductCard from '@views/apps/ecommerce/products/list/ProductCard'
|
||||
import ProductListTable from '@views/apps/ecommerce/products/list/ProductListTable'
|
||||
|
||||
// Data Imports
|
||||
import { getEcommerceData } from '@/app/server/actions'
|
||||
|
||||
/**
|
||||
* ! If you need data using an API call, uncomment the below API code, update the `process.env.API_URL` variable in the
|
||||
@@ -27,8 +26,6 @@ import { getEcommerceData } from '@/app/server/actions'
|
||||
} */
|
||||
|
||||
const eCommerceProductsList = async () => {
|
||||
// Vars
|
||||
const data = await getEcommerceData()
|
||||
|
||||
return (
|
||||
<Grid container spacing={6}>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
// MUI Imports
|
||||
|
||||
// Component Imports
|
||||
import StockListTable from '../../../../../../../views/apps/stock/adjustment/StockListTable'
|
||||
|
||||
// Data Imports
|
||||
|
||||
/**
|
||||
* ! If you need data using an API call, uncomment the below API code, update the `process.env.API_URL` variable in the
|
||||
* ! `.env` file found at root of your project and also update the API endpoints like `/apps/ecommerce` in below example.
|
||||
* ! Also, remove the above server action import and the action itself from the `src/app/server/actions.ts` file to clean up unused code
|
||||
* ! because we've used the server action for getting our static data.
|
||||
*/
|
||||
|
||||
/* const getEcommerceData = async () => {
|
||||
// Vars
|
||||
const res = await fetch(`${process.env.API_URL}/apps/ecommerce`)
|
||||
|
||||
if (!res.ok) {
|
||||
throw new Error('Failed to fetch ecommerce data')
|
||||
}
|
||||
|
||||
return res.json()
|
||||
} */
|
||||
|
||||
const StockAdjustment = async () => {
|
||||
return <StockListTable />
|
||||
}
|
||||
|
||||
export default StockAdjustment
|
||||
@@ -0,0 +1,30 @@
|
||||
// MUI Imports
|
||||
|
||||
// Component Imports
|
||||
import StockListTable from '../../../../../../../views/apps/stock/list/StockListTable'
|
||||
|
||||
// Data Imports
|
||||
|
||||
/**
|
||||
* ! If you need data using an API call, uncomment the below API code, update the `process.env.API_URL` variable in the
|
||||
* ! `.env` file found at root of your project and also update the API endpoints like `/apps/ecommerce` in below example.
|
||||
* ! Also, remove the above server action import and the action itself from the `src/app/server/actions.ts` file to clean up unused code
|
||||
* ! because we've used the server action for getting our static data.
|
||||
*/
|
||||
|
||||
/* const getEcommerceData = async () => {
|
||||
// Vars
|
||||
const res = await fetch(`${process.env.API_URL}/apps/ecommerce`)
|
||||
|
||||
if (!res.ok) {
|
||||
throw new Error('Failed to fetch ecommerce data')
|
||||
}
|
||||
|
||||
return res.json()
|
||||
} */
|
||||
|
||||
const StockList = async () => {
|
||||
return <StockListTable />
|
||||
}
|
||||
|
||||
export default StockList
|
||||
Reference in New Issue
Block a user