From eee5762506fe27ea604f6d73d0a93f510e866c06 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 19 May 2019 16:04:28 -0400 Subject: [PATCH] Fix TypeScript fail --- .../components/buttons/GroupedButtons.js | 31 +++++------------ .../components/buttons/GroupedButtons.tsx | 33 +++++-------------- 2 files changed, 18 insertions(+), 46 deletions(-) diff --git a/docs/src/pages/components/buttons/GroupedButtons.js b/docs/src/pages/components/buttons/GroupedButtons.js index 249ad324e0e477..d0c7d608f4effc 100644 --- a/docs/src/pages/components/buttons/GroupedButtons.js +++ b/docs/src/pages/components/buttons/GroupedButtons.js @@ -2,39 +2,26 @@ import React from 'react'; import Grid from '@material-ui/core/Grid'; import Button from '@material-ui/core/Button'; import ButtonGroup from '@material-ui/core/ButtonGroup'; -import { makeStyles } from '@material-ui/core/styles'; - -const useStyles = makeStyles(theme => ({ - root: { - width: '100%', - display: 'flex', - }, - item: { - padding: theme.spacing(1), - }, -})); export default function GroupedButtons() { - const classes = useStyles(); - return ( - - - +
+ + - + - + Three - + - + Three - + - +
); } diff --git a/docs/src/pages/components/buttons/GroupedButtons.tsx b/docs/src/pages/components/buttons/GroupedButtons.tsx index f57591872beda4..d0c7d608f4effc 100644 --- a/docs/src/pages/components/buttons/GroupedButtons.tsx +++ b/docs/src/pages/components/buttons/GroupedButtons.tsx @@ -2,41 +2,26 @@ import React from 'react'; import Grid from '@material-ui/core/Grid'; import Button from '@material-ui/core/Button'; import ButtonGroup from '@material-ui/core/ButtonGroup'; -import { makeStyles, Theme, createStyles } from '@material-ui/core/styles'; - -const useStyles = makeStyles((theme: Theme) => - createStyles({ - root: { - width: '100%', - display: 'flex', - }, - item: { - padding: theme.spacing(1), - }, - }), -); export default function GroupedButtons() { - const classes = useStyles(); - return ( - - - +
+ + - + - + Three - + - + Three - + - +
); }