feat: getting rid of unnecessary ids and changing validation format
This commit is contained in:
1 parent
b7c3fb9291
commit
9b3f73da0e
5 files changed
+112
-81
No files matched your search
@@ -20,7 +20,7 @@ import { useTheme } from "@emotion/react";
|
||||
*
|
||||
* @returns {React.Element} The `Check` component with a check icon and a label, defined by the `text` prop.
|
||||
*/
|
||||
const Check = ({ text, variant = "info", outlined = false }) => {
|
||||
const Check = ({ text, noHighlightText, variant = "info", outlined = false }) => {
|
||||
const theme = useTheme();
|
||||
const colors = {
|
||||
success: theme.palette.success.main,
|
||||
@@ -54,7 +54,7 @@ const Check = ({ text, variant = "info", outlined = false }) => {
|
||||
opacity: 0.8,
|
||||
}}
|
||||
>
|
||||
{text}
|
||||
<Typography component="span">{noHighlightText}</Typography> {text}
|
||||
</Typography>
|
||||
</Stack>
|
||||
);
|
||||
@@ -62,6 +62,7 @@ const Check = ({ text, variant = "info", outlined = false }) => {
|
||||
|
||||
Check.propTypes = {
|
||||
text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
|
||||
noHighlightText: PropTypes.string,
|
||||
variant: PropTypes.oneOf(["info", "error", "success"]),
|
||||
outlined: PropTypes.bool,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user