mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
onClick added to deps in ConsentCheckbox
This commit is contained in:
parent
1a967571f2
commit
e5e0bc8b38
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, hre
|
|||
nativeEvent: event.nativeEvent
|
||||
});
|
||||
}
|
||||
}, [onToggle]);
|
||||
}, [onToggle, props.onClick]);
|
||||
const linkOnClick = React.useCallback((event) => {
|
||||
event.nativeEvent.togglePrevented = true;
|
||||
}, []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue