Skip to content

Commit

Permalink
add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 23, 2024
1 parent f181f06 commit 2c81c67
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/form/FirstNameField.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { PersonOutlined as PersonOutlinedIcon } from "@mui/icons-material"
import { InputAdornment } from "@mui/material"
import type { FC } from "react"
import { string as YupString } from "yup"

Expand All @@ -13,6 +15,7 @@ const FirstNameField: FC<FirstNameFieldProps> = ({
name = "first_name",
label = "First name",
placeholder = "Enter your first name",
InputProps = {},
...otherTextFieldProps
}) => {
return (
Expand All @@ -21,6 +24,14 @@ const FirstNameField: FC<FirstNameFieldProps> = ({
name={name}
label={label}
placeholder={placeholder}
InputProps={{
endAdornment: (
<InputAdornment position="end">
<PersonOutlinedIcon />
</InputAdornment>
),
...InputProps,
}}
{...otherTextFieldProps}
/>
)
Expand Down

0 comments on commit 2c81c67

Please sign in to comment.