Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nichochar committed Jul 23, 2024
1 parent ca05ba8 commit 694c334
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/web/src/routes/secrets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ function SecretRow(props: {
const passwordRef = useRef<HTMLInputElement>(null);

const [hovering, setHovering] = useState(false);
const [inputFocused, setInputFocused] = useState(false);
const [show, setShow] = useState(false);

function onNameKeydown(e: React.KeyboardEvent<HTMLInputElement>) {
Expand Down Expand Up @@ -188,7 +187,6 @@ function SecretRow(props: {
}

function onBlur() {
setInputFocused(false);
if (isValidSecretName(name)) {
props.onUpdate(props.name, name, value);
} else {
Expand Down Expand Up @@ -236,7 +234,6 @@ function SecretRow(props: {
onKeyDown={onNameKeydown}
onChange={(e) => setName(e.currentTarget.value.toUpperCase())}
autoComplete="off"
onFocus={() => setInputFocused(true)}
onBlur={onBlur}
className="border-transparent group-hover:border-border group-focus-within:border-border"
/>
Expand All @@ -250,7 +247,6 @@ function SecretRow(props: {
onKeyDown={onPasswordKeydown}
onChange={(e) => setValue(e.currentTarget.value)}
required
onFocus={() => setInputFocused(true)}
onBlur={onBlur}
className="border-transparent group-hover:border-border group-focus-within:border-border pr-8"
/>
Expand Down

0 comments on commit 694c334

Please sign in to comment.