Skip to content

Commit

Permalink
[docs] Use button in backdrop demo (#19282)
Browse files Browse the repository at this point in the history
  • Loading branch information
theswerd authored and oliviertassinari committed Jan 18, 2020
1 parent 2373c22 commit b887bf4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions docs/src/pages/components/backdrop/SimpleBackdrop.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import Backdrop from '@material-ui/core/Backdrop';
import CircularProgress from '@material-ui/core/CircularProgress';
import Button from '@material-ui/core/Button';
import { makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles(theme => ({
Expand All @@ -22,9 +23,9 @@ export default function SimpleBackdrop() {

return (
<div>
<button type="button" onClick={handleToggle}>
<Button variant="outlined" color="primary" onClick={handleToggle}>
Show backdrop
</button>
</Button>
<Backdrop className={classes.backdrop} open={open} onClick={handleClose}>
<CircularProgress color="inherit" />
</Backdrop>
Expand Down
5 changes: 3 additions & 2 deletions docs/src/pages/components/backdrop/SimpleBackdrop.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import Backdrop from '@material-ui/core/Backdrop';
import CircularProgress from '@material-ui/core/CircularProgress';
import Button from '@material-ui/core/Button';
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';

const useStyles = makeStyles((theme: Theme) =>
Expand All @@ -24,9 +25,9 @@ export default function SimpleBackdrop() {

return (
<div>
<button type="button" onClick={handleToggle}>
<Button variant="outlined" color="primary" onClick={handleToggle}>
Show backdrop
</button>
</Button>
<Backdrop className={classes.backdrop} open={open} onClick={handleClose}>
<CircularProgress color="inherit" />
</Backdrop>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/dialogs/CustomizedDialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function CustomizedDialogs() {

return (
<div>
<Button variant="outlined" color="secondary" onClick={handleClickOpen}>
<Button variant="outlined" color="primary" onClick={handleClickOpen}>
Open dialog
</Button>
<Dialog onClose={handleClose} aria-labelledby="customized-dialog-title" open={open}>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/dialogs/CustomizedDialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function CustomizedDialogs() {

return (
<div>
<Button variant="outlined" color="secondary" onClick={handleClickOpen}>
<Button variant="outlined" color="primary" onClick={handleClickOpen}>
Open dialog
</Button>
<Dialog onClose={handleClose} aria-labelledby="customized-dialog-title" open={open}>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/dialogs/SimpleDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function SimpleDialog(props) {
<AddIcon />
</Avatar>
</ListItemAvatar>
<ListItemText primary="add account" />
<ListItemText primary="Add account" />
</ListItem>
</List>
</Dialog>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/dialogs/SimpleDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function SimpleDialog(props: SimpleDialogProps) {
<AddIcon />
</Avatar>
</ListItemAvatar>
<ListItemText primary="add account" />
<ListItemText primary="Add account" />
</ListItem>
</List>
</Dialog>
Expand Down

0 comments on commit b887bf4

Please sign in to comment.