Skip to content

Commit

Permalink
fix 404... again
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathon Kelly committed Apr 12, 2017
1 parent 386890a commit 18d6d3d
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions public/containers/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ import React, { Component } from 'react';
import NotificationSystem from 'react-notification-system';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Route } from 'react-router-dom';
import type { Match } from 'react-router-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import * as actions from '../redux/notifications';
import Main from './Main';

type PropsType = {
children: React$Element<any>,
notifications: Array<Object>,
actions: {
hideNotification: Function,
},
match: Match,
};

const styles = {
Expand Down Expand Up @@ -58,20 +55,20 @@ export default class App extends Component {
notificationSystem: { addNotification: Function };

render() {
const { match } = this.props;

return (
<div style={styles.root}>
<div style={styles.container}>
<Route exact path={match.url} component={Main} />
</div>
<Router>
<div style={styles.root}>
<div style={styles.container}>
<Route component={Main} />
</div>

<NotificationSystem
ref={c => {
this.notificationSystem = c;
}}
/>
</div>
<NotificationSystem
ref={c => {
this.notificationSystem = c;
}}
/>
</div>
</Router>
);
}
}

0 comments on commit 18d6d3d

Please sign in to comment.