diff --git a/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-detail/customer-group-detail.tsx b/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-detail/customer-group-detail.tsx index 1dc9437984..360cf14c05 100644 --- a/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-detail/customer-group-detail.tsx +++ b/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-detail/customer-group-detail.tsx @@ -1,10 +1,14 @@ import { Outlet, useLoaderData, useParams } from "react-router-dom" + import { JsonViewSection } from "../../../components/common/json-view-section" import { useCustomerGroup } from "../../../hooks/api/customer-groups" import { CustomerGroupCustomerSection } from "./components/customer-group-customer-section" import { CustomerGroupGeneralSection } from "./components/customer-group-general-section" import { customerGroupLoader } from "./loader" +import after from "virtual:medusa/widgets/customer_group/details/after" +import before from "virtual:medusa/widgets/customer_group/details/before" + export const CustomerGroupDetail = () => { const initialData = useLoaderData() as Awaited< ReturnType @@ -29,8 +33,22 @@ export const CustomerGroupDetail = () => { return (
+ {before.widgets.map((w, i) => { + return ( +
+ +
+ ) + })} + {after.widgets.map((w, i) => { + return ( +
+ +
+ ) + })}
diff --git a/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-list/customer-group-list.tsx b/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-list/customer-group-list.tsx index 3e3786160a..29baedbfbe 100644 --- a/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-list/customer-group-list.tsx +++ b/packages/admin-next/dashboard/src/routes/customer-groups/customer-group-list/customer-group-list.tsx @@ -1,10 +1,28 @@ import { Outlet } from "react-router-dom" + import { CustomerGroupListTable } from "./components/customer-group-list-table" +import after from "virtual:medusa/widgets/customer_group/list/after" +import before from "virtual:medusa/widgets/customer_group/list/before" + export const CustomerGroupsList = () => { return (
+ {before.widgets.map((w, i) => { + return ( +
+ +
+ ) + })} + {after.widgets.map((w, i) => { + return ( +
+ +
+ ) + })}
) diff --git a/packages/admin-next/dashboard/src/routes/customers/customer-detail/customer-detail.tsx b/packages/admin-next/dashboard/src/routes/customers/customer-detail/customer-detail.tsx index 6a616b251d..8f86214bc6 100644 --- a/packages/admin-next/dashboard/src/routes/customers/customer-detail/customer-detail.tsx +++ b/packages/admin-next/dashboard/src/routes/customers/customer-detail/customer-detail.tsx @@ -1,10 +1,14 @@ import { Outlet, useLoaderData, useParams } from "react-router-dom" + import { JsonViewSection } from "../../../components/common/json-view-section" import { useCustomer } from "../../../hooks/api/customers" import { CustomerGeneralSection } from "./components/customer-general-section" import { CustomerGroupSection } from "./components/customer-group-section" import { customerLoader } from "./loader" +import after from "virtual:medusa/widgets/customer/details/after" +import before from "virtual:medusa/widgets/customer/details/before" + export const CustomerDetail = () => { const { id } = useParams() @@ -25,11 +29,25 @@ export const CustomerDetail = () => { return (
+ {before.widgets.map((w, i) => { + return ( +
+ +
+ ) + })} {/* // TODO: re-add when order endpoints are added to api-v2 */} + {after.widgets.map((w, i) => { + return ( +
+ +
+ ) + })}
diff --git a/packages/admin-next/dashboard/src/routes/customers/customer-list/customer-list.tsx b/packages/admin-next/dashboard/src/routes/customers/customer-list/customer-list.tsx index 4a475d2450..3a25bfdbeb 100644 --- a/packages/admin-next/dashboard/src/routes/customers/customer-list/customer-list.tsx +++ b/packages/admin-next/dashboard/src/routes/customers/customer-list/customer-list.tsx @@ -1,10 +1,28 @@ import { Outlet } from "react-router-dom" + import { CustomerListTable } from "./components/customer-list-table" +import after from "virtual:medusa/widgets/customer/list/after" +import before from "virtual:medusa/widgets/customer/list/before" + export const CustomersList = () => { return (
+ {before.widgets.map((w, i) => { + return ( +
+ +
+ ) + })} + {after.widgets.map((w, i) => { + return ( +
+ +
+ ) + })}
)