diff options
| author | Ryan Mehri <[email protected]> | 2020-05-14 11:07:16 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-14 11:07:16 -0600 |
| commit | d4a75e378cb04d6244048e0d292e7b0d18194c21 (patch) | |
| tree | 30ce52784ba2f2790043884f333bc1807fa50a3a /frontend/src/components/App.js | |
| parent | Merge pull request #19 from jackyzha0/password (diff) | |
| parent | use var (diff) | |
| download | ctrl-v-d4a75e378cb04d6244048e0d292e7b0d18194c21.tar.xz ctrl-v-d4a75e378cb04d6244048e0d292e7b0d18194c21.zip | |
Merge pull request #20 from jackyzha0/pass-rendering
rendering password protected pastes
Diffstat (limited to 'frontend/src/components/App.js')
| -rw-r--r-- | frontend/src/components/App.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 605903e..3b147db 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -39,19 +39,20 @@ function App() { <span role="img" aria-label="clipboard">📋 </span> <Link to="/">ctrl-v</Link> </h1> - <Desc /> </nav> </SpacedTitle> - <Switch> - <Route path="/:hash" - children={<GetPasteWithParam />} - /> - <Route path="/"> - <NewPaste /> - </Route> - </Switch> + <main id="appElement"> + <Switch> + <Route path="/:hash" + children={<GetPasteWithParam />} + /> + <Route path="/"> + <NewPaste /> + </Route> + </Switch> + </main> <Footer /> </div> |