Commit 7664c958 authored by Florent Chehab's avatar Florent Chehab

Merge branch 'fix_react_warnings' into 'master'

Fix react warnings

Closes #49

See merge request !51
parents 7266140c 23eaf979
Pipeline #35515 passed with stages
in 3 minutes and 47 seconds
......@@ -58,9 +58,9 @@ class ThemeProvider extends CustomComponentForAPI {
const siteSettings = {
typography: {
fontSize: 14,
htmlFontSize: 14
htmlFontSize: 14,
useNextVariants: true,
},
useNextVariants: true,
myPaper: {
padding: 16
}
......
......@@ -146,7 +146,7 @@ const BlockquoteRenderer = (props, classes) => (
const TableRenderer = (props, classes) => (
<Paper className={classes.backgroundTable}>
<Table className={classes.table}> {props.children} </Table>
<Table className={classes.table}>{props.children}</Table>
</Paper>
);
......@@ -165,16 +165,16 @@ const renderers = {
heading: HeadingRenderer,
list: withStyles(styles, { withTheme: true })(ListRenderer),
listItem: withStyles(styles, { withTheme: true })(ListItemRenderer),
paragraph: (props) => <Typography paragraph > {props.children} </Typography>,
paragraph: (props) => <Typography paragraph >{props.children}</Typography>,
link: props => <LinkText {...props} />,
code: withStyles(styles, { withTheme: true })(CodeRenderer),
inlineCode: withStyles(styles, { withTheme: true })(InlineCodeRenderer),
blockquote: withStyles(styles, { withTheme: true })(BlockquoteRenderer),
table: withStyles(styles, { withTheme: true })(TableRenderer),
tableHead: withStyles(styles, { withTheme: true })(TableHeadRenderer),
tableBody: props => (<TableBody> {props.children} </TableBody>),
tableRow: props => (<TableRow hover={true}> {props.children} </TableRow>),
tableCell: props => (<TableCell> {props.children} </TableCell>),
tableBody: props => (<TableBody>{props.children}</TableBody>),
tableRow: props => (<TableRow hover={true}>{props.children}</TableRow>),
tableCell: props => (<TableCell>{props.children}</TableCell>),
thematicBreak: () => (<Divider />)
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment