From 47c5665c3210dce1469314a132cf9bd1d1d6ed9f Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sat, 28 Mar 2020 17:41:44 +0200 Subject: [PATCH] spread checked prop in ConsentCheckbox --- src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js b/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js index fb626ff0b..b36ec904c 100644 --- a/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js +++ b/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js @@ -4,7 +4,7 @@ const classnames = require('classnames'); const { Button, Checkbox } = require('stremio/common'); const styles = require('./styles'); -const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, href, onToggle, ...props }, ref) => { +const ConsentCheckbox = React.forwardRef(({ className, label, link, href, onToggle, ...props }, ref) => { const checkboxOnClick = React.useCallback((event) => { if (typeof props.onClick === 'function') { props.onClick(event); @@ -22,7 +22,7 @@ const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, hre event.nativeEvent.togglePrevented = true; }, []); return ( - +
{label} {' '}