title: Cannot read property 'prepareStyles' of undefined
body: <p>I am trying to open a <code>Dialog</code> box by a button click.
  When I am clicking the button the <code>Dialog</code> first of all is not opened and I am getting Error : </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'prepareStyles' of undefined.</p>
  </blockquote>
  
  <p>Here is the code for my Component:</p>
  
  <pre><code>const muiThemebtn = getMuiTheme({
      palette: {
      alternateTextColor: darkBlack,
      primary1Color: grey100,
    }
  })
  
  export default class MyComponent extends React.Component {
    constructor (props) {
      super(props);
      this.state = {open: true};
      this.openModal = this.openModal.bind(this);
      this.closeModal = this.closeModal.bind(this);
    }
  
  
    openModal=()=&gt;{ this.setState({open: true}); }
  
    closeModal=()=&gt;{ this.setState({open: false}); }
  
    render () {
  
            const actions = [
              &lt;FlatButton
                label="Cancel"
                primary={true}
                onTouchTap={this.handleClose}
              /&gt;,
              &lt;FlatButton
                label="Submit"
                primary={true}
                keyboardFocused={true}
                onTouchTap={this.handleClose}
              /&gt;,
            ];
          return (
            &lt;div&gt;
              &lt;MuiThemeProvider muiTheme={muiThemebtn}&gt;
                  &lt;RaisedButton label={Lang.AddUser} 
                    onTouchTap={this.openModal}
                    primary={true}
                    display='none'
                    icon={&lt;ContentAddBox color={darkBlack} style={{backgroundColor:'#e3e3e3'}}/&gt;}
                    /&gt;
                &lt;/MuiThemeProvider&gt;
                &lt;Dialog
                  title="Scrollable Dialog"
                  actions={actions}
                  modal={false}
                  open={this.state.open}
                  onRequestClose={this.handleClose}
                  autoScrollBodyContent={true}
                &gt;
                Dialog Text
                &lt;/Dialog&gt;
            &lt;/div&gt;
       );
     }
  }
  </code></pre>
  
  <p>Please suggest.
  Note: I need to use the <code>MuiThemeProvider</code></p>