Skip to content

Commit 1369e54

Browse files
committed
refactor: better naming of variable
1 parent 654df53 commit 1369e54

File tree

1 file changed

+2
-2
lines changed
  • web/src/layout/Header/navbar/Menu/Settings/SendMeNotifications/FormNotifs

1 file changed

+2
-2
lines changed

web/src/layout/Header/navbar/Menu/Settings/SendMeNotifications/FormNotifs/FormEmail.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const FormEmail: React.FC<IFormEmail> = ({ emailInput, setEmailInput, setEmailIs
2525
setEmailInput(event.target.value);
2626
};
2727

28-
const getFieldVariant = useMemo(() => {
28+
const fieldVariant = useMemo(() => {
2929
if (emailInput === "") {
3030
return undefined;
3131
}
@@ -34,7 +34,7 @@ const FormEmail: React.FC<IFormEmail> = ({ emailInput, setEmailInput, setEmailIs
3434

3535
return (
3636
<StyledField
37-
variant={getFieldVariant}
37+
variant={fieldVariant}
3838
value={emailInput}
3939
onChange={handleInputChange}
4040
placeholder="[email protected]"

0 commit comments

Comments
 (0)