Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add form field theming #17

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion frontend/src/app/HeaderTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

React.useEffect(() => {
window.isSwitched = !isChecked;
}, [isChecked]);
}, [window.isSwitched]);

Check failure on line 46 in frontend/src/app/HeaderTools.tsx

View workflow job for this annotation

GitHub Actions / Tests (18.x)

React Hook React.useEffect has a missing dependency: 'isChecked'. Either include it or remove the dependency array. Outer scope values like 'window.isSwitched' aren't valid dependencies because mutating them doesn't re-render the component

Check failure on line 46 in frontend/src/app/HeaderTools.tsx

View workflow job for this annotation

GitHub Actions / Tests (18.x)

React Hook React.useEffect has a missing dependency: 'isChecked'. Either include it or remove the dependency array. Outer scope values like 'window.isSwitched' aren't valid dependencies because mutating them doesn't re-render the component

const handleChange = (_event: React.FormEvent<HTMLInputElement>, checked: boolean) => {
setIsChecked(!checked);
Expand Down
Loading
Loading