diff options
| author | jackyzha0 <[email protected]> | 2020-05-11 22:19:40 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-11 22:19:40 -0700 |
| commit | e563ee55db6c7a9fa719289638f5b9a8fbd72fda (patch) | |
| tree | 73a14a9a3246f26ba943b7c0401f6ea0a9e3df70 /frontend/src/components/NewPaste.js | |
| parent | add err messages (diff) | |
| download | ctrl-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.js | 16 |
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) { |