mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 14:52:13 +00:00
ConsentCheckbox uses Input from navigation package
This commit is contained in:
parent
1ddcd21b89
commit
827b542063
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const React = require('react');
|
||||
const PropTypes = require('prop-types');
|
||||
const classnames = require('classnames');
|
||||
const { Input } = require('stremio-navigation');
|
||||
const { Checkbox } = require('stremio-common');
|
||||
const styles = require('./styles');
|
||||
|
||||
|
|
@ -15,7 +16,7 @@ const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, hre
|
|||
{label}
|
||||
{
|
||||
typeof link === 'string' && typeof href === 'string' ?
|
||||
<a className={styles['link']} href={href} target={'_blank'} tabIndex={-1} onClick={linkOnClick}> {link}</a>
|
||||
<Input className={styles['link']} type={'link'} href={href} target={'_blank'} tabIndex={-1} onClick={linkOnClick}> {link}</Input>
|
||||
:
|
||||
null
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue