diff options
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) { |