Material UI SVG Problems

I have problems with SVG Icons from Material UI Framework. The Problem is that icons don't render. Simple exemple:

<FloatingActionButton onTouchTap={this.handleToggle} style={menuIconStyle}>
  <NavigationMenu />
</FloatingActionButton>

And what I get: menu button

Or

checkbox

I use material-ui with react + electron.

Specification:

Any ideas ?

Upvotes: 1

Views: 387

Answers (1)

Mayank Shukla
Mayank Shukla

Reputation: 104369

You forgot to define the getMuiTheme, use it like this:

import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';


<MuiThemeProvider muiTheme={getMuiTheme()}>
  ....
</MuiThemeProvider>

Upvotes: 1

Related Questions