-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1670: add hints for name data privacy and referenceNr, adjust error message * 1650: added line breaks to help texts * 1670: disallow multi spaces. move replace multi spaces to utils, fix small issues * 1670: add check for emojis to name and referenceNr, allow empty space at the beginning and end of the name but trim it in generateCardInfo * 1670: remove emoji check, add xregexp check for common and latin charset * 1670: fix package json lock
- Loading branch information
Showing
11 changed files
with
209 additions
and
52 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
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
27 changes: 27 additions & 0 deletions
27
administration/src/bp-modules/self-service/components/FormErrorMessage.tsx
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 InfoOutlined from '@mui/icons-material/InfoOutlined' | ||
import { styled } from '@mui/material' | ||
import React, { CSSProperties, ReactElement } from 'react' | ||
|
||
const Container = styled('div')` | ||
margin: 6px 0; | ||
color: #ba1a1a; | ||
display: flex; | ||
gap: 8px; | ||
align-items: center; | ||
font-size: 14px; | ||
` | ||
|
||
type FormErrorMessageProps = { | ||
errorMessage: string | null | ||
style?: CSSProperties | ||
} | ||
|
||
const FormErrorMessage = ({ errorMessage, style }: FormErrorMessageProps): ReactElement | null => | ||
errorMessage ? ( | ||
<Container style={style}> | ||
<InfoOutlined /> | ||
{errorMessage} | ||
</Container> | ||
) : null | ||
|
||
export default FormErrorMessage |
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
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
Oops, something went wrong.