Skip to content

Commit 499a830

Browse files
author
Chubby Granny Chaser
committed
chore: sync with main
1 parent 437b0a3 commit 499a830

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ concurrency:
77
on:
88
push:
99
branches:
10-
- main
1110
- release/**
1211

1312
jobs:

src/renderer/src/components/text-field/text-field.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import { useTranslation } from "react-i18next";
44
import cn from "classnames";
55
import "./text-field.scss";
66

7-
export interface TextFieldProps extends React.DetailedHTMLProps<
8-
React.InputHTMLAttributes<HTMLInputElement>,
9-
HTMLInputElement
10-
> {
7+
export interface TextFieldProps
8+
extends React.DetailedHTMLProps<
9+
React.InputHTMLAttributes<HTMLInputElement>,
10+
HTMLInputElement
11+
> {
1112
theme?: "primary" | "dark";
1213
label?: string | React.ReactNode;
1314
hint?: string | React.ReactNode;
@@ -42,7 +43,10 @@ export const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
4243
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
4344
const { t } = useTranslation("forms");
4445
const showPasswordToggleButton = props.type === "password";
45-
const inputType = props.type === "password" && isPasswordVisible ? "text" : props.type ?? "text";
46+
const inputType =
47+
props.type === "password" && isPasswordVisible
48+
? "text"
49+
: (props.type ?? "text");
4650
const hintContent = error ? (
4751
<small className="text-field-container__error-label">{error}</small>
4852
) : hint ? (
@@ -106,4 +110,4 @@ export const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
106110
);
107111
}
108112
);
109-
TextField.displayName = "TextField";
113+
TextField.displayName = "TextField";

0 commit comments

Comments
 (0)