Created
October 8, 2018 16:55
-
-
Save jakiestfu/a693ec7da7dcb8eeae8a2b24ec0f09ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserRouter as Router, Route } from 'react-router-dom' | |
import Upsell from './containers/Upsell' | |
import AddonsView from './components/AddonsView' | |
import ExtrasView from './components/Extras' | |
const Addons = Upsell({ | |
view: AddonsView, | |
products: ['shave-butter', 'hair-gel', 'butt-wipes'], | |
}) | |
const Extras = Upsell({ | |
view: AddonsView, | |
products: ['body-wash', 'face-cleanser', 'tooth-brush'], | |
}) | |
export default () => ( | |
<Router> | |
<Switch> | |
<Route exact path='/get-started/add-ons' component={Addons} /> | |
<Route exact path='/get-started/extras' component={Extras} /> | |
</Switch> | |
</Router> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment