Redux commented out
This commit is contained in:
1 parent
3eb9afc83c
commit
0947e5441c
2 files changed
+15
-5
No files matched your search
@@ -61,6 +61,14 @@ class NavBar extends Component {
|
||||
}
|
||||
);
|
||||
*/
|
||||
const userStored = localStorage.getItem('user');
|
||||
console.log(userStored);
|
||||
|
||||
if (userStored !== null && userStored !== undefined && userStored !== 'undefined') {
|
||||
const user = JSON.parse(userStored);
|
||||
const authId = user.sub;
|
||||
this.setState({ authId: authId });
|
||||
}
|
||||
}
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
|
||||
+7
-5
@@ -2,10 +2,12 @@ import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import {createStore} from 'redux';
|
||||
import {Provider} from 'reaxt-redux';
|
||||
import rootReducer from './reducers/rootReducer';
|
||||
//import {createStore} from 'redux';
|
||||
//import {Provider} from 'reaxt-redux';
|
||||
//import rootReducer from './reducers/rootReducer';
|
||||
|
||||
const store = createStore(rootReducer);
|
||||
//const store = createStore(rootReducer);
|
||||
|
||||
ReactDOM.render(<Provider store={store}<App /></Provider>, document.getElementById('root'));
|
||||
//ReactDOM.render(<Provider store={store}<App /></Provider>, document.getElementById('root'));
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'));
|
||||
Reference in new issue
Block a user