exposed onChange listeners for text fields

This commit is contained in:
Alex Holliday committed 2024-06-06 11:41:34 -07:00
1 parent 483cb9d030
commit 43ebcee690
6 files changed
+237 -624

No files matched your search

@@ -10,6 +10,7 @@ import { useTheme } from "@mui/material";
*
* @component
* @param {Object} props - The properties that define the `EmailTextField` component.
* @param {function} props.onChange - The function to call when the text field changes.
* @param {string} props.id - The id of the text field.
* @param {string} [props.label="Email"] - The label of the text field.
* @param {string} props.variant - The variant of the text field.
@@ -26,6 +27,7 @@ import { useTheme } from "@mui/material";
*/
const EmailTextField = ({
onChange,
id,
label = "Email",
variant,
@@ -52,6 +54,7 @@ const EmailTextField = ({
<div className="email-text-field-title">{label}</div>
<div className="email-text-field">
<TextField
onChange={onChange}
error={error}
className="email-text-field-input"
id={id}