Skip to content

Commit

Permalink
Use shorthand syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Feb 23, 2021
1 parent 488af25 commit d0a90a9
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/ActionAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function ActionAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/ActionAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function ActionAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/BasicAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function BasicAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/BasicAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function BasicAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/DescriptionAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function DescriptionAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/DescriptionAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function DescriptionAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/FilledAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function BasicAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/FilledAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function BasicAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/IconAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function IconAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/IconAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function IconAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/OutlinedAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function BasicAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/OutlinedAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function BasicAlerts() {
sx={{
width: '100%',
'& > * + *': {
marginTop: (theme) => theme.spacing(2),
mt: 2,
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/TransitionAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function TransitionAlerts() {
<Box sx={{ width: '100%' }}>
<Collapse in={open}>
<Alert
sx={{ marginBottom: (theme) => theme.spacing(2) }}
action={
<IconButton
aria-label="close"
Expand All @@ -26,6 +25,7 @@ export default function TransitionAlerts() {
<CloseIcon fontSize="inherit" />
</IconButton>
}
sx={{ mb: 2 }}
>
Close me!
</Alert>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/alert/TransitionAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function TransitionAlerts() {
<Box sx={{ width: '100%' }}>
<Collapse in={open}>
<Alert
sx={{ marginBottom: (theme) => theme.spacing(2) }}
action={
<IconButton
aria-label="close"
Expand All @@ -26,6 +25,7 @@ export default function TransitionAlerts() {
<CloseIcon fontSize="inherit" />
</IconButton>
}
sx={{ mb: 2 }}
>
Close me!
</Alert>
Expand Down

0 comments on commit d0a90a9

Please sign in to comment.