diff --git a/package-lock.json b/package-lock.json index b02e736..13a302d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10589,9 +10589,9 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fast-xml-parser": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.0.tgz", - "integrity": "sha512-kLY3jFlwIYwBNDojclKsNAC12sfD6NwW74QB2CoNGPvtVxjliYehVunB3HYyNi+n4Tt1dAcgwYvmKF/Z18flqg==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", + "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", "funding": [ { "type": "github", diff --git a/src/components/Input.tsx b/src/components/Input.tsx index dc14ca1..1e097b5 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -14,13 +14,14 @@ export const Input = React.forwardRef( return ( {label} - -
- {icon} +
+ {icon && {icon}} + + -
- - + +
+ Please enter your {label} {match !== undefined && ( diff --git a/src/components/Textarea.tsx b/src/components/Textarea.tsx index 1b7dedd..2ead700 100644 --- a/src/components/Textarea.tsx +++ b/src/components/Textarea.tsx @@ -1,4 +1,4 @@ -import React from "react" +import React, { useState } from "react" import * as Form from "@radix-ui/react-form" interface TextareaProps extends React.TextareaHTMLAttributes { @@ -7,20 +7,30 @@ interface TextareaProps extends React.TextareaHTMLAttributes( - ({ name, label, ...delegated }, ref) => ( - - {label} - -