aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/NewPaste.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-11 22:19:40 -0700
committerjackyzha0 <[email protected]>2020-05-11 22:19:40 -0700
commite563ee55db6c7a9fa719289638f5b9a8fbd72fda (patch)
tree73a14a9a3246f26ba943b7c0401f6ea0a9e3df70 /frontend/src/components/NewPaste.js
parentadd err messages (diff)
downloadctrl-v-e563ee55db6c7a9fa719289638f5b9a8fbd72fda.tar.xz
ctrl-v-e563ee55db6c7a9fa719289638f5b9a8fbd72fda.zip
fix readonly + fields + mount err
Diffstat (limited to 'frontend/src/components/NewPaste.js')
-rw-r--r--frontend/src/components/NewPaste.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js
index 2ce2ecf..fa2c997 100644
--- a/frontend/src/components/NewPaste.js
+++ b/frontend/src/components/NewPaste.js
@@ -3,21 +3,7 @@ import { TitleInput, PasteInput } from './Inputs'
import OptionsContainer from './Options'
import axios from 'axios';
import { Redirect } from 'react-router-dom'
-import styled from 'styled-components'
-
-const ErrMsg = styled.p`
- display: inline-block;
- font-weight: 700;
- margin-left: 2em;
- color: #ff3333
-`
-
-const Error = (props) => {
- const msg = props.msg.toString().toLowerCase()
- return (
- <ErrMsg> { msg } </ErrMsg>
- );
-}
+import Error from './Err'
class NewPaste extends React.Component {
constructor(props) {