mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
CheckboxLabel renamed to ConsentCheckbox
This commit is contained in:
parent
6d9971ac25
commit
fe2ded7f32
4 changed files with 9 additions and 9 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
import CheckboxLabel from './CheckboxLabel';
|
|
||||||
|
|
||||||
export default CheckboxLabel;
|
|
||||||
|
|
@ -4,8 +4,8 @@ import classnames from 'classnames';
|
||||||
import { Checkbox } from 'stremio-common';
|
import { Checkbox } from 'stremio-common';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
const CheckboxLabel = React.forwardRef(({ className, label, link, href, checked, onClick }, ref) => (
|
const ConsentCheckbox = React.forwardRef(({ className, label, link, href, checked, onClick }, ref) => (
|
||||||
<label className={classnames(styles['checkbox-label-container'], className)}>
|
<label className={classnames(styles['consent-checkbox-container'], className)}>
|
||||||
<Checkbox ref={ref} className={styles['checkbox']} checked={checked} onClick={onClick} />
|
<Checkbox ref={ref} className={styles['checkbox']} checked={checked} onClick={onClick} />
|
||||||
<div className={styles['label']}>
|
<div className={styles['label']}>
|
||||||
{label}
|
{label}
|
||||||
|
|
@ -14,9 +14,9 @@ const CheckboxLabel = React.forwardRef(({ className, label, link, href, checked,
|
||||||
</label>
|
</label>
|
||||||
));
|
));
|
||||||
|
|
||||||
CheckboxLabel.displayName = 'CheckboxLabel';
|
ConsentCheckbox.displayName = 'ConsentCheckbox';
|
||||||
|
|
||||||
CheckboxLabel.propTypes = {
|
ConsentCheckbox.propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
|
|
@ -25,4 +25,4 @@ CheckboxLabel.propTypes = {
|
||||||
checked: PropTypes.bool
|
checked: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
export default CheckboxLabel;
|
export default ConsentCheckbox;
|
||||||
3
src/routes/Intro/ConsentCheckbox/index.js
Normal file
3
src/routes/Intro/ConsentCheckbox/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import ConsentCheckbox from './ConsentCheckbox';
|
||||||
|
|
||||||
|
export default ConsentCheckbox;
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
.checkbox-label-container {
|
.consent-checkbox-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
Loading…
Reference in a new issue