Skip to content

Commit

Permalink
Setting authentication directlty from App.authentication in AppProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjoy committed Sep 11, 2019
1 parent 10e3588 commit dadd79b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend-core/AppProvider.jsx
Expand Up @@ -8,9 +8,9 @@ import App from './App';
import ErrorBoundary from './ErrorBoundary';
import AuthenticationContext from './AuthenticationContext';

const AppProvider = ({ authentication, store, children }) => (
const AppProvider = ({ store, children }) => (
<ErrorBoundary>
<AuthenticationContext.Provider value={authentication}>
<AuthenticationContext.Provider value={App.authentication}>
<IntlProvider locale={getLocale()} messages={getMessages()}>
<Provider store={store}>
<Router history={App.history}>
Expand Down
2 changes: 1 addition & 1 deletion src/index.jsx
Expand Up @@ -16,7 +16,7 @@ import './index.scss';

App.subscribe(APP_READY, () => {
ReactDOM.render(
<AppProvider store={configureStore()} authentication={App.authentication}>
<AppProvider store={configureStore()}>
<Header />
<ProfileMain />
<Footer />
Expand Down

0 comments on commit dadd79b

Please sign in to comment.