aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Err.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Err.js')
-rw-r--r--frontend/src/components/Err.js18
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