mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-10-16 06:03:37 +02:00
Fix linting issues
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2022 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
||||
* Copyright (C) 2019-2024 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
||||
*
|
||||
* This is free software, licensed under the GNU General Public License v3.
|
||||
* See /LICENSE for more information.
|
||||
*/
|
||||
|
||||
import React, { useState } from "react";
|
||||
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import { Input } from "./Input";
|
||||
import Input from "./Input";
|
||||
|
||||
PasswordInput.propTypes = {
|
||||
/** Field label. */
|
||||
@@ -25,7 +26,7 @@ PasswordInput.propTypes = {
|
||||
newPass: PropTypes.bool,
|
||||
};
|
||||
|
||||
export function PasswordInput({ withEye, newPass, ...props }) {
|
||||
function PasswordInput({ withEye, newPass, ...props }) {
|
||||
const [isHidden, setHidden] = useState(true);
|
||||
|
||||
return (
|
||||
@@ -51,3 +52,5 @@ export function PasswordInput({ withEye, newPass, ...props }) {
|
||||
</Input>
|
||||
);
|
||||
}
|
||||
|
||||
export default PasswordInput;
|
||||
|
Reference in New Issue
Block a user