-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tslint and fixed all issues in code base
- Loading branch information
duff-a11y
committed
Oct 30, 2019
1 parent
6d46f7d
commit 7faac9b
Showing
22 changed files
with
491 additions
and
579 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
import React from 'react'; | ||
import Explore from './components/explore'; | ||
|
||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; | ||
|
||
import Task from './components/task/task'; | ||
import Task1 from './components/task/task1'; | ||
import Task2 from './components/task/task2'; | ||
import Task3 from './components/task/task3'; | ||
|
||
import Summary from './components/summary'; | ||
import Game from './components/game/game'; | ||
|
||
const App = () => { | ||
return ( | ||
<Router> | ||
<Switch> | ||
<Route exact path='/' render={() => <Game />} /> | ||
<Route path='/explore' render={props => <Explore {...props} />} /> | ||
<Route exact path='/task' render={props => <Task {...props} />} /> | ||
<Route exact path='/task1' render={props => <Task1 {...props} />} /> | ||
<Route exact path='/task2' render={props => <Task2 {...props} />} /> | ||
<Route exact path='/task3' render={props => <Task3 {...props} />} /> | ||
<Route path="/summary" render={props => <Summary {...props} />} /> | ||
</Switch> | ||
</Router> | ||
); | ||
} | ||
const App = () => ( | ||
<Router> | ||
<Switch> | ||
<Route exact path="/" render={() => <Game />} /> | ||
<Route path="/explore" render={props => <Explore {...props} />} /> | ||
<Route exact path="/task" render={props => <Task {...props} />} /> | ||
<Route path="/summary" render={props => <Summary {...props} />} /> | ||
</Switch> | ||
</Router> | ||
); | ||
|
||
export default App; |
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
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
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
Oops, something went wrong.