diff options
| author | Jacky Zhao <[email protected]> | 2020-09-03 23:35:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-03 23:35:31 -0700 |
| commit | 6d3c9267cda3c4b4642d7a5d3145bd943e5fecd0 (patch) | |
| tree | 9054620782559381948b508e6cebf8e7d953938d /frontend/src/components/App.js | |
| parent | Merge pull request #54 from jackyzha0/patch (diff) | |
| parent | add md class to preview renderer (diff) | |
| download | ctrl-v-6d3c9267cda3c4b4642d7a5d3145bd943e5fecd0.tar.xz ctrl-v-6d3c9267cda3c4b4642d7a5d3145bd943e5fecd0.zip | |
Merge pull request #56 from jackyzha0/patch
Diffstat (limited to 'frontend/src/components/App.js')
| -rw-r--r-- | frontend/src/components/App.js | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 0a5fb8b..543cd46 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -45,30 +45,32 @@ const App = () => { <Route path="/raw/:hash" children={<GetRawWithParam />} /> - <div className="lt-content-column"> - <SpacedTitle> - <nav> - <h1 className="mainLogo"> - <span role="img" aria-label="clipboard">📋 </span> - <Link to="/">ctrl-v</Link> - </h1> - <Desc /> - </nav> - </SpacedTitle> + <Route> + <div className="lt-content-column"> + <SpacedTitle> + <nav> + <h1 className="mainLogo"> + <span role="img" aria-label="clipboard">📋 </span> + <Link to="/">ctrl-v</Link> + </h1> + <Desc /> + </nav> + </SpacedTitle> - <main id="appElement"> - <Switch> - <Route path="/:hash" - children={<GetPasteWithParam />} - /> - <Route path="/"> - <NewPaste /> - </Route> - </Switch> - </main> + <main id="appElement"> + <Switch> + <Route path="/:hash" + children={<GetPasteWithParam />} + /> + <Route path="/"> + <NewPaste /> + </Route> + </Switch> + </main> - <Footer /> - </div> + <Footer /> + </div> + </Route> </Switch> </Router> ); |