@etsoo/toolpad 1.0.33 → 1.0.34
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.
|
@@ -95,8 +95,10 @@ function PageContainerBar(props) {
|
|
|
95
95
|
return () => {
|
|
96
96
|
// Reset the state when the component unmounts
|
|
97
97
|
dispatch({});
|
|
98
|
+
console.log("PageContainerBar unmounted", activePage?.sourcePath);
|
|
98
99
|
};
|
|
99
100
|
}, [activePage?.sourcePath]);
|
|
101
|
+
console.log("PageContainerBar", activePage?.sourcePath, state);
|
|
100
102
|
const ToolbarComponent = slots?.toolbar ?? PageContainerToolbar_1.PageContainerToolbar;
|
|
101
103
|
const toolbarSlotProps = (0, useSlotProps_1.default)({
|
|
102
104
|
elementType: ToolbarComponent,
|
|
@@ -107,6 +109,7 @@ function PageContainerBar(props) {
|
|
|
107
109
|
const breadcrumbs = [...(state.breadcrumbs ?? activePage?.breadcrumbs ?? [])];
|
|
108
110
|
const title = state.title ?? activePage?.title ?? "";
|
|
109
111
|
const pageHeader = state.pageHeader ?? activePage?.pageHeader ?? null;
|
|
112
|
+
console.log("PageContainerBar", activePage?.sourcePath, title, breadcrumbs);
|
|
110
113
|
// No page header
|
|
111
114
|
if (pageHeader === false)
|
|
112
115
|
return undefined;
|
|
@@ -54,8 +54,10 @@ function PageContainerBar(props) {
|
|
|
54
54
|
return () => {
|
|
55
55
|
// Reset the state when the component unmounts
|
|
56
56
|
dispatch({});
|
|
57
|
+
console.log("PageContainerBar unmounted", activePage?.sourcePath);
|
|
57
58
|
};
|
|
58
59
|
}, [activePage?.sourcePath]);
|
|
60
|
+
console.log("PageContainerBar", activePage?.sourcePath, state);
|
|
59
61
|
const ToolbarComponent = slots?.toolbar ?? PageContainerToolbar;
|
|
60
62
|
const toolbarSlotProps = useSlotProps({
|
|
61
63
|
elementType: ToolbarComponent,
|
|
@@ -66,6 +68,7 @@ function PageContainerBar(props) {
|
|
|
66
68
|
const breadcrumbs = [...(state.breadcrumbs ?? activePage?.breadcrumbs ?? [])];
|
|
67
69
|
const title = state.title ?? activePage?.title ?? "";
|
|
68
70
|
const pageHeader = state.pageHeader ?? activePage?.pageHeader ?? null;
|
|
71
|
+
console.log("PageContainerBar", activePage?.sourcePath, title, breadcrumbs);
|
|
69
72
|
// No page header
|
|
70
73
|
if (pageHeader === false)
|
|
71
74
|
return undefined;
|
package/package.json
CHANGED
|
@@ -122,9 +122,12 @@ function PageContainerBar(props: PageContainerBarProps) {
|
|
|
122
122
|
return () => {
|
|
123
123
|
// Reset the state when the component unmounts
|
|
124
124
|
dispatch({});
|
|
125
|
+
console.log("PageContainerBar unmounted", activePage?.sourcePath);
|
|
125
126
|
};
|
|
126
127
|
}, [activePage?.sourcePath]);
|
|
127
128
|
|
|
129
|
+
console.log("PageContainerBar", activePage?.sourcePath, state);
|
|
130
|
+
|
|
128
131
|
const ToolbarComponent = slots?.toolbar ?? PageContainerToolbar;
|
|
129
132
|
const toolbarSlotProps = useSlotProps({
|
|
130
133
|
elementType: ToolbarComponent,
|
|
@@ -137,6 +140,8 @@ function PageContainerBar(props: PageContainerBarProps) {
|
|
|
137
140
|
const title = state.title ?? activePage?.title ?? "";
|
|
138
141
|
const pageHeader = state.pageHeader ?? activePage?.pageHeader ?? null;
|
|
139
142
|
|
|
143
|
+
console.log("PageContainerBar", activePage?.sourcePath, title, breadcrumbs);
|
|
144
|
+
|
|
140
145
|
// No page header
|
|
141
146
|
if (pageHeader === false) return undefined;
|
|
142
147
|
|