aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Err.js
blob: f1891d0813817944b494fc547578160d6910e13e (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-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