Skip to content

Commit

Permalink
simplify the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Sep 20, 2023
1 parent 69c035e commit 7bd5a47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/data/joy/components/button/ButtonLoadingIndicator.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as React from 'react';
import Stack from '@mui/joy/Stack';
import SendIcon from '@mui/icons-material/Send';
import Button from '@mui/joy/Button';

export default function ButtonLoadingIndicator() {
return (
<Stack spacing={2} direction="row">
<Button loading endDecorator={<SendIcon />} variant="solid">
<Button loading variant="solid">
Send
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
Expand Down
3 changes: 1 addition & 2 deletions docs/data/joy/components/button/ButtonLoadingIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as React from 'react';
import Stack from '@mui/joy/Stack';
import SendIcon from '@mui/icons-material/Send';
import Button from '@mui/joy/Button';

export default function ButtonLoadingIndicator() {
return (
<Stack spacing={2} direction="row">
<Button loading endDecorator={<SendIcon />} variant="solid">
<Button loading variant="solid">
Send
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Button loading endDecorator={<SendIcon />} variant="solid">
<Button loading variant="solid">
Send
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
Expand Down

0 comments on commit 7bd5a47

Please sign in to comment.