-
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.
Merge pull request #67 from laurentC35/improve-sync
Improve synchronization
- Loading branch information
Showing
104 changed files
with
2,302 additions
and
735 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import App from 'App'; | ||
import QueenContainer from 'components/panel-body/queen-container'; | ||
import React from 'react'; | ||
import { Route, Switch, useLocation } from 'react-router-dom'; | ||
|
||
function AppRooter() { | ||
const { pathname } = useLocation(); | ||
|
||
return ( | ||
<Switch> | ||
<Route path="/queen" component={routeProps => <QueenContainer {...routeProps} />} /> | ||
{!pathname.startsWith('/queen') && <Route path="/" component={App} />} | ||
</Switch> | ||
); | ||
} | ||
|
||
export default AppRooter; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.