aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Err.js
blob: 8562a74b890adaf730fecc35e7a3b4688ffbe6f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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