-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from daodaoedu/fix/verify-profile-info
Fix: Validation for profile's gender and role, and remove unnecessary field
- Loading branch information
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { IoMdCloseCircleOutline } from 'react-icons/io'; | ||
import { Box, Typography } from '@mui/material'; | ||
|
||
const ErrorMessage = ({ errText }) => { | ||
return ( | ||
errText && ( | ||
<Box | ||
sx={{ | ||
mt: '8px', | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '8px', | ||
color: '#EF5364', | ||
bgcolor: '#FFEFF1', | ||
borderRadius: '4px', | ||
padding: '4px 8px', | ||
fontSize: '14px', | ||
}} | ||
> | ||
<IoMdCloseCircleOutline size={20} /> | ||
<Typography as="p">{errText}</Typography> | ||
</Box> | ||
) | ||
); | ||
}; | ||
|
||
export default ErrorMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters