mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +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).
|
* 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 VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
|
||||||
import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
|
import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
|
||||||
import { IconButton, InputAdornment, TextFieldProps } from "@mui/material";
|
import { IconButton, InputAdornment, TextFieldProps } from "@mui/material";
|
||||||
@ -15,7 +14,7 @@ import { forwardRef, useState } from "react";
|
|||||||
import { Input } from "./Input";
|
import { Input } from "./Input";
|
||||||
|
|
||||||
export const PasswordInput = forwardRef<any, TextFieldProps>(
|
export const PasswordInput = forwardRef<any, TextFieldProps>(
|
||||||
({ onChange, InputProps, value, ...rest }, ref) => {
|
({ onChange, InputProps, ...rest }, ref) => {
|
||||||
const [showPassword, setShowPassword] = useState(false);
|
const [showPassword, setShowPassword] = useState(false);
|
||||||
const handleTogglePasswordVisibility = () => {
|
const handleTogglePasswordVisibility = () => {
|
||||||
setShowPassword(!showPassword);
|
setShowPassword(!showPassword);
|
||||||
@ -26,7 +25,6 @@ export const PasswordInput = forwardRef<any, TextFieldProps>(
|
|||||||
ref={ref}
|
ref={ref}
|
||||||
type={showPassword ? "text" : "password"}
|
type={showPassword ? "text" : "password"}
|
||||||
{...rest}
|
{...rest}
|
||||||
defaultValue={value}
|
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
InputProps={{
|
InputProps={{
|
||||||
...InputProps,
|
...InputProps,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user