Skip to content

Commit

Permalink
[docs] Use style root convention
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jan 27, 2020
1 parent 109c763 commit 20cd5cb
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/ImgMediaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
maxWidth: 345,
},
});
Expand All @@ -18,7 +18,7 @@ export default function ImgMediaCard() {
const classes = useStyles();

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardActionArea>
<CardMedia
component="img"
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/ImgMediaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
maxWidth: 345,
},
});
Expand All @@ -18,7 +18,7 @@ export default function ImgMediaCard() {
const classes = useStyles();

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardActionArea>
<CardMedia
component="img"
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/MediaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
maxWidth: 345,
},
media: {
Expand All @@ -21,7 +21,7 @@ export default function MediaCard() {
const classes = useStyles();

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardActionArea>
<CardMedia
className={classes.media}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/MediaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
maxWidth: 345,
},
media: {
Expand All @@ -21,7 +21,7 @@ export default function MediaCard() {
const classes = useStyles();

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardActionArea>
<CardMedia
className={classes.media}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/MediaControlCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import PlayArrowIcon from '@material-ui/icons/PlayArrow';
import SkipNextIcon from '@material-ui/icons/SkipNext';

const useStyles = makeStyles(theme => ({
card: {
root: {
display: 'flex',
},
details: {
Expand Down Expand Up @@ -40,7 +40,7 @@ export default function MediaControlCard() {
const theme = useTheme();

return (
<Card className={classes.card}>
<Card className={classes.root}>
<div className={classes.details}>
<CardContent className={classes.content}>
<Typography component="h5" variant="h5">
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/MediaControlCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SkipNextIcon from '@material-ui/icons/SkipNext';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
card: {
root: {
display: 'flex',
},
details: {
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function MediaControlCard() {
const theme = useTheme();

return (
<Card className={classes.card}>
<Card className={classes.root}>
<div className={classes.details}>
<CardContent className={classes.content}>
<Typography component="h5" variant="h5">
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/OutlinedCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
minWidth: 275,
},
bullet: {
Expand All @@ -28,7 +28,7 @@ export default function OutlinedCard() {
const bull = <span className={classes.bullet}></span>;

return (
<Card className={classes.card} variant="outlined">
<Card className={classes.root} variant="outlined">
<CardContent>
<Typography className={classes.title} color="textSecondary" gutterBottom>
Word of the Day
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/OutlinedCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
minWidth: 275,
},
bullet: {
Expand All @@ -28,7 +28,7 @@ export default function OutlinedCard() {
const bull = <span className={classes.bullet}></span>;

return (
<Card className={classes.card} variant="outlined">
<Card className={classes.root} variant="outlined">
<CardContent>
<Typography className={classes.title} color="textSecondary" gutterBottom>
Word of the Day
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/RecipeReviewCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import MoreVertIcon from '@material-ui/icons/MoreVert';

const useStyles = makeStyles(theme => ({
card: {
root: {
maxWidth: 345,
},
media: {
Expand Down Expand Up @@ -48,7 +48,7 @@ export default function RecipeReviewCard() {
};

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardHeader
avatar={
<Avatar aria-label="recipe" className={classes.avatar}>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/RecipeReviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import MoreVertIcon from '@material-ui/icons/MoreVert';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
card: {
root: {
maxWidth: 345,
},
media: {
Expand Down Expand Up @@ -50,7 +50,7 @@ export default function RecipeReviewCard() {
};

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardHeader
avatar={
<Avatar aria-label="recipe" className={classes.avatar}>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/SimpleCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
minWidth: 275,
},
bullet: {
Expand All @@ -28,7 +28,7 @@ export default function SimpleCard() {
const bull = <span className={classes.bullet}></span>;

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardContent>
<Typography className={classes.title} color="textSecondary" gutterBottom>
Word of the Day
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/cards/SimpleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';

const useStyles = makeStyles({
card: {
root: {
minWidth: 275,
},
bullet: {
Expand All @@ -28,7 +28,7 @@ export default function SimpleCard() {
const bull = <span className={classes.bullet}></span>;

return (
<Card className={classes.card}>
<Card className={classes.root}>
<CardContent>
<Typography className={classes.title} color="textSecondary" gutterBottom>
Word of the Day
Expand Down

0 comments on commit 20cd5cb

Please sign in to comment.