Skip to content

Commit

Permalink
fix: remove unused snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
IkbelTalebHssan committed Jan 23, 2025
1 parent 55ebe75 commit 60434a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/app-components/inputs/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/


import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
import { IconButton, InputAdornment, TextFieldProps } from "@mui/material";
Expand All @@ -15,7 +14,7 @@ import { forwardRef, useState } from "react";
import { Input } from "./Input";

export const PasswordInput = forwardRef<any, TextFieldProps>(
({ onChange, InputProps, value, ...rest }, ref) => {
({ onChange, InputProps, ...rest }, ref) => {
const [showPassword, setShowPassword] = useState(false);
const handleTogglePasswordVisibility = () => {
setShowPassword(!showPassword);
Expand All @@ -26,7 +25,6 @@ export const PasswordInput = forwardRef<any, TextFieldProps>(
ref={ref}
type={showPassword ? "text" : "password"}
{...rest}
defaultValue={value}
onChange={onChange}
InputProps={{
...InputProps,
Expand Down

0 comments on commit 60434a6

Please sign in to comment.