diff options
| author | Ryan Mehri <[email protected]> | 2020-05-12 09:29:49 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-12 09:29:49 -0600 |
| commit | c0fc08d77570232cfda3f6e2bdbac2c3bf1aafeb (patch) | |
| tree | 9463f3be987993bda22ef4bfc3a56c9174fceee8 /frontend/src/components/Err.js | |
| parent | Merge pull request #17 from jackyzha0/password (diff) | |
| parent | working no pass rendering (diff) | |
| download | ctrl-v-c0fc08d77570232cfda3f6e2bdbac2c3bf1aafeb.tar.xz ctrl-v-c0fc08d77570232cfda3f6e2bdbac2c3bf1aafeb.zip | |
Merge pull request #18 from jackyzha0/no-pass-rendering
no password paste rendering
Diffstat (limited to 'frontend/src/components/Err.js')
| -rw-r--r-- | frontend/src/components/Err.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/frontend/src/components/Err.js b/frontend/src/components/Err.js new file mode 100644 index 0000000..8562a74 --- /dev/null +++ b/frontend/src/components/Err.js @@ -0,0 +1,18 @@ +import React from 'react'; +import styled from 'styled-components' + +const ErrMsg = styled.p` + display: inline; + font-weight: 700; + margin-left: 2em; + color: #ff3333 +` + +const Error = (props) => { + const msg = props.msg.toString().toLowerCase() + return ( + <ErrMsg> {msg} </ErrMsg> + ); +} + +export default Error
\ No newline at end of file |