@applica-software-guru/react-admin 1.5.283 → 1.5.284

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.
package/package.json CHANGED
@@ -106,5 +106,5 @@
106
106
  "type": "module",
107
107
  "types": "dist/index.d.ts",
108
108
  "typings": "dist/index.d.ts",
109
- "version": "1.5.283"
109
+ "version": "1.5.284"
110
110
  }
@@ -1,5 +1,5 @@
1
1
  import { Children, ReactElement, ReactNode, isValidElement, useMemo } from 'react';
2
- import { Box, Button, Divider, Grid } from '@mui/material';
2
+ import { Box, Button, Divider, Grid, useTheme } from '@mui/material';
3
3
  import { MainCard } from '@/components/MainCard';
4
4
  import { Toolbar } from './Toolbar';
5
5
  import { useTranslate } from 'react-admin';
@@ -23,6 +23,7 @@ interface ContentProps {
23
23
  function Content({ title, subheader, secondary, toolbar, progress, isSmall, modal, sx, setCurrentStep }: ContentProps) {
24
24
  const { currentStep, steps } = useWizardFormContext();
25
25
  const translate = useTranslate();
26
+ const theme = useTheme();
26
27
  const isHorizontal = isSmall || modal;
27
28
 
28
29
  const cancelButton = useMemo(() => {
@@ -72,7 +73,18 @@ function Content({ title, subheader, secondary, toolbar, progress, isSmall, moda
72
73
  divider
73
74
  >
74
75
  <Box>{steps[currentStep]}</Box>
75
- {toolbar && !cancelButton ? toolbar : <Toolbar cancelButton={cancelButton} />}
76
+ <Box
77
+ sx={{
78
+ '& .MuiToolbar-root': {
79
+ paddingLeft: 0,
80
+ paddingRight: 0,
81
+ paddingBottom: 0,
82
+ paddingTop: theme.spacing(2)
83
+ }
84
+ }}
85
+ >
86
+ {toolbar && !cancelButton ? toolbar : <Toolbar cancelButton={cancelButton} />}
87
+ </Box>
76
88
  </MainCard>
77
89
  </Grid>
78
90
  </Grid>
@@ -21,13 +21,7 @@ const StyledForm = styled(RaForm, {
21
21
  ? {
22
22
  paddingBottom: `${theme.spacing(2.5)}`
23
23
  }
24
- : {},
25
- '& .MuiToolbar-root': {
26
- paddingLeft: '0 !important',
27
- paddingRight: '0 !important',
28
- paddingBottom: '0 !important',
29
- paddingTop: `${theme.spacing(2)} !important`
30
- }
24
+ : {}
31
25
  }));
32
26
 
33
27
  /**