Update dependencies

This commit is contained in:
Darren Clarke 2024-11-25 09:31:25 +01:00
parent 48aa89f7cf
commit 7ad25e8a95
49 changed files with 2116 additions and 1699 deletions

View file

@ -3,18 +3,19 @@ type ServiceLayoutProps = {
detail: any;
edit: any;
create: any;
params: {
params: Promise<{
segment: string[];
};
}>;
};
export const ServiceLayout = ({
export const ServiceLayout = async ({
children,
detail,
edit,
create,
params: { segment },
params,
}: ServiceLayoutProps) => {
const { segment } = await params;
const length = segment?.length ?? 0;
const isCreate = length === 2 && segment[1] === "create";
const isEdit = length === 3 && segment[2] === "edit";