Add /playground and initial tooltips
This commit is contained in:
+6
-2
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user