Add /playground and initial tooltips

This commit is contained in:
Melvin Valster
2019-07-24 21:52:38 +02:00
parent 94a0a97fbf
commit 36742ea22e
14 changed files with 260 additions and 32 deletions
+6 -2
View File
@@ -1,14 +1,18 @@
import React from 'react'
import './App.scss'
import { IndexRoute } from './components/IndexRoute'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import { PlaygroundRoute } from './components/PlaygroundRoute'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
const App: React.FC = () => {
return (
<Router basename={process.env.NODE_ENV === 'production' ? '/wow-talent-calculator' : ''}>
{/* <Router basename={process.env.NODE_ENV !== 'development' ? '%PUBLIC_URL%' : ''}> */}
<div className="App">
<Route path="/:selectedClass?/:pointString?" component={IndexRoute} />
<Switch>
<Route exact path="/playground" component={PlaygroundRoute} />
<Route path="/:selectedClass?/:pointString?" component={IndexRoute} />
</Switch>
</div>
</Router>
);