Skip to content

Commit

Permalink
Resolve residual stlyed components
Browse files Browse the repository at this point in the history
  • Loading branch information
n8srumsey committed Nov 1, 2024
1 parent f1508b1 commit bd2bc27
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions client/src/components/Notice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ const noticeGreen = '#77dd77'

function Notice(props) {

const NoticeContainer = styled.div`
display: flex;
flex-direction: row;
background-color: ${props.status == "error" ? noticeRed : ( props.status == "success" ? noticeGreen : noticeBlue)};
padding: 10px;
border-radius: 20px;
justify-content: center;
margin: 10px;
max-width: 450px;
`

return (
<div style={{
display: 'flex',
justifyContent: 'center'
}}>
<NoticeContainer>
<div style={{
display: 'flex',
flexDirection: 'row',
backgroundColor: `${props.status == "error" ? noticeRed : ( props.status == "success" ? noticeGreen : noticeBlue)}`,
padding: '10px',
borderRadius: '20px',
justifyContent: 'center',
margin: '10px',
maxWidth: '450px',
}}>
<div style={{
marginRight: '10px'
}}>
Expand All @@ -33,7 +31,7 @@ function Notice(props) {
fontWeight: 600
}}> {props.message}
</div>
</NoticeContainer>
</div>
</div>)

}
Expand Down

0 comments on commit bd2bc27

Please # to comment.