WA-238 Adding WithStyles type in theme/mui.js
This commit is contained in:
parent
b7d4944b01
commit
64c0341539
|
@ -1,7 +1,12 @@
|
||||||
import red from 'material-ui/colors/red';
|
// @flow
|
||||||
|
import red from 'material-ui/colors/red'
|
||||||
import { createMuiTheme } from 'material-ui/styles'
|
import { createMuiTheme } from 'material-ui/styles'
|
||||||
import { primary, secondary } from './variables'
|
import { primary, secondary } from './variables'
|
||||||
|
|
||||||
|
export type WithStyles = {
|
||||||
|
classes: Object,
|
||||||
|
}
|
||||||
|
|
||||||
const palette = {
|
const palette = {
|
||||||
primary: {
|
primary: {
|
||||||
main: primary,
|
main: primary,
|
||||||
|
@ -18,7 +23,7 @@ const palette = {
|
||||||
// see https://github.com/mui-org/material-ui/blob/v1-beta/src/styles/createMuiTheme.js
|
// see https://github.com/mui-org/material-ui/blob/v1-beta/src/styles/createMuiTheme.js
|
||||||
export default createMuiTheme({
|
export default createMuiTheme({
|
||||||
typography: {
|
typography: {
|
||||||
fontFamily: 'Montserrat,sans-serif'
|
fontFamily: 'Montserrat,sans-serif',
|
||||||
},
|
},
|
||||||
palette,
|
palette,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue