vladimirponomarev / authentication-in-react-apps

:key: Source code for a tutorial on implementing authentication in React applications.
https://vladimirponomarev.com/blog/authentication-in-react-apps-creating-components
MIT License
247 stars 79 forks source link

this.context.muiTheme is undefined #1

Closed bbousba closed 8 years ago

bbousba commented 8 years ago

Hi,

I got this error when i launch the project.

bbousba commented 8 years ago

Just change Base.jsx like this :

...
import getMuiTheme from 'material-ui/styles/getMuiTheme';`
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
...
return (
    <MuiThemeProvider muiTheme={getMuiTheme()}>
        ...
    </MuiThemeProvider>
    );
...