feat(WEB-163): edit profile field validation
This commit is contained in:
13
components/TempDesignSystem/Form/ErrorMessage/Error.tsx
Normal file
13
components/TempDesignSystem/Form/ErrorMessage/Error.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { InfoCircleIcon } from "@/components/Icons"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
|
||||
import styles from "./error.module.css"
|
||||
|
||||
export default function Error({ children }: React.PropsWithChildren) {
|
||||
return (
|
||||
<Caption className={styles.message} fontOnly>
|
||||
<InfoCircleIcon color="red" />
|
||||
{children}
|
||||
</Caption>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user