fix: user management & profit chart
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// Next Imports
|
||||
|
||||
// Type Imports
|
||||
|
||||
// Component Imports
|
||||
import OrderDetails from '@views/apps/ecommerce/orders/details'
|
||||
|
||||
/**
|
||||
* ! 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 OrderDetailsPage = async () => {
|
||||
|
||||
return <OrderDetails />
|
||||
}
|
||||
|
||||
export default OrderDetailsPage
|
||||
@@ -21,7 +21,7 @@ import UserList from '@views/apps/user/list'
|
||||
|
||||
const UserListApp = async () => {
|
||||
|
||||
return <UserList userData={[]} />
|
||||
return <UserList />
|
||||
}
|
||||
|
||||
export default UserListApp
|
||||
|
||||
Reference in New Issue
Block a user