mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
connect reset password to login view (#4489)
This commit is contained in:
parent
811ee54c76
commit
1f15445c69
31 changed files with 893 additions and 445 deletions
|
|
@ -6,7 +6,7 @@ import { APP_USER } from 'types';
|
|||
|
||||
type OnChange = () => void;
|
||||
|
||||
export function useAutoConnect(onChange: OnChange) {
|
||||
export function useAutoConnect() {
|
||||
const [setting, setSetting] = useState(undefined);
|
||||
const [autoConnect, setAutoConnect] = useState(undefined);
|
||||
|
||||
|
|
@ -31,8 +31,6 @@ export function useAutoConnect(onChange: OnChange) {
|
|||
if (setting) {
|
||||
setting.autoConnect = autoConnect;
|
||||
setting.save();
|
||||
|
||||
onChange();
|
||||
}
|
||||
}, [setting, autoConnect]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue