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

Merge branch 'fix_react_warnings' into 'master'

Fix react warnings

Closes #49

See merge request rex-dri/rex-dri!51
parents 7266140c 23eaf979
...@@ -58,9 +58,9 @@ class ThemeProvider extends CustomComponentForAPI { ...@@ -58,9 +58,9 @@ class ThemeProvider extends CustomComponentForAPI {
const siteSettings = { const siteSettings = {
typography: { typography: {
fontSize: 14, fontSize: 14,
htmlFontSize: 14 htmlFontSize: 14,
useNextVariants: true,
}, },
useNextVariants: true,
myPaper: { myPaper: {
padding: 16 padding: 16
} }
......
...@@ -146,7 +146,7 @@ const BlockquoteRenderer = (props, classes) => ( ...@@ -146,7 +146,7 @@ const BlockquoteRenderer = (props, classes) => (
const TableRenderer = (props, classes) => ( const TableRenderer = (props, classes) => (
<Paper className={classes.backgroundTable}> <Paper className={classes.backgroundTable}>
<Table className={classes.table}> {props.children} </Table> <Table className={classes.table}>{props.children}</Table>
</Paper> </Paper>
); );
...@@ -165,16 +165,16 @@ const renderers = { ...@@ -165,16 +165,16 @@ const renderers = {
heading: HeadingRenderer, heading: HeadingRenderer,
list: withStyles(styles, { withTheme: true })(ListRenderer), list: withStyles(styles, { withTheme: true })(ListRenderer),
listItem: withStyles(styles, { withTheme: true })(ListItemRenderer), listItem: withStyles(styles, { withTheme: true })(ListItemRenderer),
paragraph: (props) => <Typography paragraph > {props.children} </Typography>, paragraph: (props) => <Typography paragraph >{props.children}</Typography>,
link: props => <LinkText {...props} />, link: props => <LinkText {...props} />,
code: withStyles(styles, { withTheme: true })(CodeRenderer), code: withStyles(styles, { withTheme: true })(CodeRenderer),
inlineCode: withStyles(styles, { withTheme: true })(InlineCodeRenderer), inlineCode: withStyles(styles, { withTheme: true })(InlineCodeRenderer),
blockquote: withStyles(styles, { withTheme: true })(BlockquoteRenderer), blockquote: withStyles(styles, { withTheme: true })(BlockquoteRenderer),
table: withStyles(styles, { withTheme: true })(TableRenderer), table: withStyles(styles, { withTheme: true })(TableRenderer),
tableHead: withStyles(styles, { withTheme: true })(TableHeadRenderer), tableHead: withStyles(styles, { withTheme: true })(TableHeadRenderer),
tableBody: props => (<TableBody> {props.children} </TableBody>), tableBody: props => (<TableBody>{props.children}</TableBody>),
tableRow: props => (<TableRow hover={true}> {props.children} </TableRow>), tableRow: props => (<TableRow hover={true}>{props.children}</TableRow>),
tableCell: props => (<TableCell> {props.children} </TableCell>), tableCell: props => (<TableCell>{props.children}</TableCell>),
thematicBreak: () => (<Divider />) 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