Skip to content

Commit

Permalink
simplify it more!
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Sep 21, 2023
1 parent b1af0b5 commit 9c8ca43
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 33 deletions.
6 changes: 2 additions & 4 deletions docs/data/joy/components/button/ButtonLoadingIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import Button from '@mui/joy/Button';
export default function ButtonLoadingIndicator() {
return (
<Stack spacing={2} direction="row">
<Button loading variant="outlined">
Default
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
<Button loading>Default</Button>
<Button loading loadingIndicator="Loading…">
Custom
</Button>
</Stack>
Expand Down
6 changes: 2 additions & 4 deletions docs/data/joy/components/button/ButtonLoadingIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import Button from '@mui/joy/Button';
export default function ButtonLoadingIndicator() {
return (
<Stack spacing={2} direction="row">
<Button loading variant="outlined">
Default
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
<Button loading>Default</Button>
<Button loading loadingIndicator="Loading…">
Custom
</Button>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<Button loading variant="outlined">
Default
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
<Button loading>Default</Button>
<Button loading loadingIndicator="Loading…">
Custom
</Button>
9 changes: 2 additions & 7 deletions docs/data/joy/components/button/ButtonLoadingPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ import Button from '@mui/joy/Button';
export default function ButtonLoadingPosition() {
return (
<Stack spacing={2} direction="row">
<Button loading loadingPosition="start" variant="outlined">
<Button loading loadingPosition="start">
Start
</Button>
<Button
loading
loadingPosition="end"
endDecorator={<SendIcon />}
variant="outlined"
>
<Button loading loadingPosition="end" endDecorator={<SendIcon />}>
End
</Button>
</Stack>
Expand Down
9 changes: 2 additions & 7 deletions docs/data/joy/components/button/ButtonLoadingPosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ import Button from '@mui/joy/Button';
export default function ButtonLoadingPosition() {
return (
<Stack spacing={2} direction="row">
<Button loading loadingPosition="start" variant="outlined">
<Button loading loadingPosition="start">
Start
</Button>
<Button
loading
loadingPosition="end"
endDecorator={<SendIcon />}
variant="outlined"
>
<Button loading loadingPosition="end" endDecorator={<SendIcon />}>
End
</Button>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<Button loading loadingPosition="start" variant="outlined">
<Button loading loadingPosition="start">
Start
</Button>
<Button
loading
loadingPosition="end"
endDecorator={<SendIcon />}
variant="outlined"
>
<Button loading loadingPosition="end" endDecorator={<SendIcon />}>
End
</Button>

0 comments on commit 9c8ca43

Please sign in to comment.