diff options
| author | jackyzha0 <[email protected]> | 2020-05-22 23:39:35 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-22 23:39:35 -0700 |
| commit | cdf8e036ff56281e9052fff7a688c6f32121428f (patch) | |
| tree | 1a3b4db5ba9e875b97ab8bb234300e1ba2b168b6 /frontend/src/components/App.js | |
| parent | switch to styled components for raw renderer (diff) | |
| download | ctrl-v-cdf8e036ff56281e9052fff7a688c6f32121428f.tar.xz ctrl-v-cdf8e036ff56281e9052fff7a688c6f32121428f.zip | |
add preview panel
Diffstat (limited to 'frontend/src/components/App.js')
| -rw-r--r-- | frontend/src/components/App.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index eb63ed9..ae95dcb 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -11,7 +11,6 @@ import { useParams } from "react-router-dom"; import Raw from './renderers/Raw' -import Dispatch from './renderers/Raw' const SpacedTitle = styled.div` margin-top: 10vh @@ -39,15 +38,6 @@ const GetRawWithParam = () => { ); } -const RenderWithParam = () => { - let { hash } = useParams(); - console.log(hash) - - return ( - <Dispatch hash={hash} /> - ); -} - function App() { return ( <Router> @@ -68,9 +58,6 @@ function App() { <main id="appElement"> <Switch> - <Route path="/render/:hash" - children={<RenderWithParam />} - /> <Route path="/:hash" children={<GetPasteWithParam />} /> |