feat(MED-100): partner location metadata stored on order line instead of order

This commit is contained in:
2025-07-24 09:23:44 +03:00
parent 3341dbd306
commit 894cf1b454
6 changed files with 31 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ import { notFound } from 'next/navigation';
import { retrieveOrder } from '~/medusa/lib/data/orders';
import { createI18nServerInstance } from '@/lib/i18n/i18n.server';
import OrderCompleted from '@/app/home/(user)/_components/order/order-completed';
import { withI18n } from '~/lib/i18n/with-i18n';
type Props = {
params: Promise<{ orderId: string }>;
@@ -16,7 +17,7 @@ export async function generateMetadata() {
};
}
export default async function OrderConfirmedPage(props: Props) {
async function OrderConfirmedPage(props: Props) {
const params = await props.params;
const order = await retrieveOrder(params.orderId).catch(() => null);
@@ -26,3 +27,5 @@ export default async function OrderConfirmedPage(props: Props) {
return <OrderCompleted order={order} />;
}
export default withI18n(OrderConfirmedPage);