From 433466a3947e75a36b811795bc21be1fff10b5e8 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Mon, 11 May 2020 21:11:16 -0700 Subject: backend redir --- frontend/src/components/App.js | 27 +++-- frontend/src/components/CharLimit.js | 37 ------ frontend/src/components/FloatingLabel.js | 34 ------ frontend/src/components/Inputs.js | 4 +- frontend/src/components/NewPaste.js | 124 +++++++++++++++++++++ frontend/src/components/PasteArea.js | 113 ------------------- frontend/src/components/ViewPaste.js | 16 +++ frontend/src/components/decorators/CharLimit.js | 37 ++++++ .../src/components/decorators/FloatingLabel.js | 34 ++++++ 9 files changed, 233 insertions(+), 193 deletions(-) delete mode 100644 frontend/src/components/CharLimit.js delete mode 100644 frontend/src/components/FloatingLabel.js create mode 100644 frontend/src/components/NewPaste.js delete mode 100644 frontend/src/components/PasteArea.js create mode 100644 frontend/src/components/ViewPaste.js create mode 100644 frontend/src/components/decorators/CharLimit.js create mode 100644 frontend/src/components/decorators/FloatingLabel.js (limited to 'frontend/src/components') diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 2f438e9..605903e 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -1,28 +1,34 @@ import React from 'react'; -import PasteArea from './PasteArea' +import NewPaste from './NewPaste' +import ViewPaste from './ViewPaste' import Footer from './Footer' import styled from 'styled-components' import { BrowserRouter as Router, Switch, Route, - Link + Link, + useParams } from "react-router-dom"; const SpacedTitle = styled.div` margin-top: 10vh ` -const Inline = styled.div` - display: inline-block -` - const Desc = () => { return (

a modern, open-source pastebin with latex and markdown rendering support

); } +const GetPasteWithParam = () => { + let { hash } = useParams(); + + return ( + + ); +} + function App() { return ( @@ -38,7 +44,14 @@ function App() { - + + } + /> + + + +