mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: remove unused snippet
This commit is contained in:
parent
55ebe75861
commit
60434a6e8a
@ -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";
|
||||
@ -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);
|
||||
@ -26,7 +25,6 @@ export const PasswordInput = forwardRef<any, TextFieldProps>(
|
||||
ref={ref}
|
||||
type={showPassword ? "text" : "password"}
|
||||
{...rest}
|
||||
defaultValue={value}
|
||||
onChange={onChange}
|
||||
InputProps={{
|
||||
...InputProps,
|
||||
|
Loading…
Reference in New Issue
Block a user