ConsentCheckbox className prop dropped

This commit is contained in:
NikolaBorislavovHristov 2019-07-30 17:00:35 +03:00
parent 5ccdad5402
commit 08db8e723f
2 changed files with 2 additions and 6 deletions

View file

@ -5,7 +5,7 @@ const { Input } = require('stremio-navigation');
const { Checkbox } = require('stremio/common');
const styles = require('./styles');
const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, href, toggle }, ref) => {
const ConsentCheckbox = React.forwardRef(({ checked, label, link, href, toggle }, ref) => {
const checkboxOnClick = React.useCallback((event) => {
if (!event.nativeEvent.handled && typeof toggle === 'function') {
toggle(event);
@ -15,7 +15,7 @@ const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, hre
event.nativeEvent.handled = true;
}, []);
return (
<Checkbox ref={ref} className={classnames(className, styles['consent-checkbox-container'])} checked={checked} onClick={checkboxOnClick}>
<Checkbox ref={ref} className={classnames(styles['consent-checkbox'], 'focusable-with-border')} checked={checked} onClick={checkboxOnClick}>
<div className={styles['label']}>
{label}
{
@ -40,7 +40,6 @@ const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, hre
ConsentCheckbox.displayName = 'ConsentCheckbox';
ConsentCheckbox.propTypes = {
className: PropTypes.string,
checked: PropTypes.bool,
label: PropTypes.string,
link: PropTypes.string,

View file

@ -222,7 +222,6 @@ class Intro extends React.Component {
/>
<ConsentCheckbox
ref={this.termsRef}
className={classnames(styles['consent-checkbox'], 'focusable-with-border')}
label={'I have read and agree with the Stremio'}
link={'Terms and conditions'}
href={'https://www.stremio.com/tos'}
@ -231,7 +230,6 @@ class Intro extends React.Component {
/>
<ConsentCheckbox
ref={this.privacyPolicyRef}
className={classnames(styles['consent-checkbox'], 'focusable-with-border')}
label={'I have read and agree with the Stremio'}
link={'Privacy Policy'}
href={'https://www.stremio.com/privacy'}
@ -240,7 +238,6 @@ class Intro extends React.Component {
/>
<ConsentCheckbox
ref={this.marketingRef}
className={classnames(styles['consent-checkbox'], 'focusable-with-border')}
label={'I agree to receive marketing communications from Stremio'}
checked={this.state.marketingAccepted}
toggle={this.toggleMarketing}