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/Err.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/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..f1891d0 --- /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-block; + 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 |