Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Use button in backdrop demo #19282

Merged
merged 5 commits into from
Jan 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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