From 0b37c8b715b8f5ebea4472c9e7d6104ca8adbdc8 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 15 May 2020 22:11:13 -0700 Subject: add view raw button --- frontend/src/components/App.js | 63 ++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 24 deletions(-) (limited to 'frontend/src/components/App.js') diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 3b147db..ae95dcb 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -10,6 +10,7 @@ import { Link, useParams } from "react-router-dom"; +import Raw from './renderers/Raw' const SpacedTitle = styled.div` margin-top: 10vh @@ -29,35 +30,49 @@ const GetPasteWithParam = () => { ); } +const GetRawWithParam = () => { + let { hash } = useParams(); + + return ( + + ); +} + function App() { return ( -
- - - - -
- - } - /> - - - - -
- -
-
+ + } + /> +
+ + + + +
+ + } + /> + + + + +
+ +
+
); } + export default App; -- cgit v1.2.3