@m4l/layouts 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43,6 +43,7 @@ function ButtonDetail(props) {
|
|
|
43
43
|
onClick,
|
|
44
44
|
description
|
|
45
45
|
} = props;
|
|
46
|
+
console.log("ButtonDetail", masterSelection);
|
|
46
47
|
return /* @__PURE__ */ jsx(Button, {
|
|
47
48
|
onClick,
|
|
48
49
|
variant: "outlined",
|
|
@@ -138,13 +139,6 @@ function MasterDetailLayout(props) {
|
|
|
138
139
|
}, [splitActions, moduleActions, isDesktop, viewDetailAction]);
|
|
139
140
|
const finalComponentsDictionary = useMemo(() => componentsDictionary.concat(getMasterDetailLayoutComponentsDictionary()), [componentsDictionary]);
|
|
140
141
|
console.log("MasterDetailLayout Render");
|
|
141
|
-
const memonizedSplit = useMemo(() => {
|
|
142
|
-
return /* @__PURE__ */ jsx(SplitLayout, {
|
|
143
|
-
splitPosition: isDesktop ? splitPosition : "none",
|
|
144
|
-
firstPart: masterComponent,
|
|
145
|
-
secondPart: detailComponent
|
|
146
|
-
});
|
|
147
|
-
}, [isDesktop, splitPosition, masterComponent, detailComponent]);
|
|
148
142
|
return /* @__PURE__ */ jsx(ModuleLayout, {
|
|
149
143
|
ref: moduleLayoutRef,
|
|
150
144
|
moduleId,
|
|
@@ -155,7 +149,11 @@ function MasterDetailLayout(props) {
|
|
|
155
149
|
componentsDictionary: finalComponentsDictionary,
|
|
156
150
|
breadcrumbLinks,
|
|
157
151
|
children: /* @__PURE__ */ jsx(MasterDetailProvider, {
|
|
158
|
-
children:
|
|
152
|
+
children: /* @__PURE__ */ jsx(SplitLayout, {
|
|
153
|
+
splitPosition: isDesktop ? splitPosition : "none",
|
|
154
|
+
firstPart: masterComponent,
|
|
155
|
+
secondPart: detailComponent
|
|
156
|
+
})
|
|
159
157
|
})
|
|
160
158
|
});
|
|
161
159
|
}
|