diff --git a/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js b/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js index 2cde04da2..c753b8d28 100644 --- a/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js +++ b/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js @@ -2,7 +2,7 @@ const React = require('react'); const PropTypes = require('prop-types'); const classnames = require('classnames'); const { Button, Checkbox } = require('stremio/common'); -require('./styles'); +const styles = require('./styles'); const ConsentCheckbox = React.forwardRef(({ label, link, href, toggle, ...props }, ref) => { const checkboxOnClick = React.useCallback((event) => { @@ -14,13 +14,13 @@ const ConsentCheckbox = React.forwardRef(({ label, link, href, toggle, ...props event.nativeEvent.togglePrevented = true; }, []); return ( - -
+ +
{label} { typeof link === 'string' && typeof href === 'string' ? -
We won't post anything on your behalf
+
We won't post anything on your behalf
: -
- +
+
} { this.state.error.length > 0 ? -
{this.state.error}
+
{this.state.error}
: null } - { this.state.form === SIGNUP_FORM ? - : null } -