Skip to content

Commit

Permalink
fix: renamed inType to inputType
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Jan 6, 2023
1 parent 1723291 commit dd67213
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ export const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
isReadOnly,
isRequired = true,
startAdornment,
type: inType = "text",
type: inputType = "text",
value,
} = props;

const [inputType, setInputType] = useState(inType);
const [inputType, setInputType] = useState(inputType);

const togglePasswordVisibility = useCallback(() => {
setInputType((currentType) =>
Expand All @@ -153,7 +153,7 @@ export const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
<InputBase
autoComplete={autoCompleteType}
endAdornment={
inType === "password" ? (
inputType === "password" ? (
<InputAdornment position="end">
<IconButton
aria-label="toggle password visibility"
Expand Down

0 comments on commit dd67213

Please sign in to comment.