From a98a94bd2743d4b500986e54008c665b422f45ee Mon Sep 17 00:00:00 2001 From: rizky Date: Thu, 18 Jul 2024 19:42:24 -0700 Subject: [PATCH] fix header prefix suffix --- comps/md/MasterDetail.tsx | 3 +++ comps/md/utils/typings.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/comps/md/MasterDetail.tsx b/comps/md/MasterDetail.tsx index ef8858f..e2a4107 100755 --- a/comps/md/MasterDetail.tsx +++ b/comps/md/MasterDetail.tsx @@ -12,6 +12,7 @@ import { } from "./utils/md-hash"; import { mdRenderLoop } from "./utils/md-render-loop"; import { MDLocalInternal, MDProps } from "./utils/typings"; +import { any } from "zod"; export const MasterDetail: FC = (arg) => { const { @@ -38,6 +39,8 @@ export const MasterDetail: FC = (arg) => { breadcrumb: [], internalRender() {}, render: () => {}, + master: { prefix: null, suffix: null }, + child: { prefix: null, suffix: null }, }, selected: null, tab: { diff --git a/comps/md/utils/typings.ts b/comps/md/utils/typings.ts index 08c00dc..2126c6d 100755 --- a/comps/md/utils/typings.ts +++ b/comps/md/utils/typings.ts @@ -41,6 +41,8 @@ export type MDLocalInternal = { breadcrumb: BreadItem[]; internalRender: () => void; render: () => void; + master: { prefix: any; suffix: any }; + child: { prefix: any; suffix: any }; }; actions: MDActions; selected: any; @@ -105,6 +107,8 @@ export const MasterDetailType = `const md = { url?: string; onClick?: () => void; }[] + master: { prefix: any; suffix: any }; + child: { prefix: any; suffix: any }; }; actions: ( {