@etsoo/toolpad 1.0.21 → 1.0.22
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.
|
@@ -125,7 +125,7 @@ function PageContainer(props) {
|
|
|
125
125
|
externalSlotProps: props?.slotProps?.toolbar,
|
|
126
126
|
additionalProps: {}
|
|
127
127
|
});
|
|
128
|
-
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { sx: { mx: 3, my: 2 }, spacing: 2, ...rest, children: [state.noPageHeader !==
|
|
128
|
+
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { sx: { mx: 3, my: 2 }, spacing: 2, ...rest, children: [state.noPageHeader !== true && ((0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [state.noBreadcrumbs !== true && ((0, jsx_runtime_1.jsx)(Breadcrumbs_1.default, { "aria-label": "breadcrumb", children: resolvedBreadcrumbs
|
|
129
129
|
? resolvedBreadcrumbs.map((item, index) => {
|
|
130
130
|
return index < resolvedBreadcrumbs.length - 1 ? ((0, jsx_runtime_1.jsx)(Link_1.default, { component: Link_2.Link, underline: "hover", color: "inherit", href: item.path, children: (0, navigation_1.getItemTitle)(item) }, item.path)) : ((0, jsx_runtime_1.jsx)(Typography_1.default, { color: "text.primary", children: (0, navigation_1.getItemTitle)(item) }, item.path));
|
|
131
131
|
})
|
|
@@ -84,7 +84,7 @@ function PageContainer(props) {
|
|
|
84
84
|
externalSlotProps: props?.slotProps?.toolbar,
|
|
85
85
|
additionalProps: {}
|
|
86
86
|
});
|
|
87
|
-
return (_jsxs(Stack, { sx: { mx: 3, my: 2 }, spacing: 2, ...rest, children: [state.noPageHeader !==
|
|
87
|
+
return (_jsxs(Stack, { sx: { mx: 3, my: 2 }, spacing: 2, ...rest, children: [state.noPageHeader !== true && (_jsxs(Stack, { children: [state.noBreadcrumbs !== true && (_jsx(Breadcrumbs, { "aria-label": "breadcrumb", children: resolvedBreadcrumbs
|
|
88
88
|
? resolvedBreadcrumbs.map((item, index) => {
|
|
89
89
|
return index < resolvedBreadcrumbs.length - 1 ? (_jsx(Link, { component: ToolpadLink, underline: "hover", color: "inherit", href: item.path, children: getItemTitle(item) }, item.path)) : (_jsx(Typography, { color: "text.primary", children: getItemTitle(item) }, item.path));
|
|
90
90
|
})
|
package/package.json
CHANGED
|
@@ -158,9 +158,9 @@ function PageContainer(props: PageContainerProps) {
|
|
|
158
158
|
|
|
159
159
|
return (
|
|
160
160
|
<Stack sx={{ mx: 3, my: 2 }} spacing={2} {...rest}>
|
|
161
|
-
{state.noPageHeader !==
|
|
161
|
+
{state.noPageHeader !== true && (
|
|
162
162
|
<Stack>
|
|
163
|
-
{state.noBreadcrumbs !==
|
|
163
|
+
{state.noBreadcrumbs !== true && (
|
|
164
164
|
<Breadcrumbs aria-label="breadcrumb">
|
|
165
165
|
{resolvedBreadcrumbs
|
|
166
166
|
? resolvedBreadcrumbs.map((item, index) => {
|