mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-06 09:29:29 +00:00
extra props expanded in MetaRow
This commit is contained in:
parent
b083548587
commit
92ed0cdaa7
2 changed files with 4 additions and 4 deletions
|
|
@ -10,9 +10,9 @@ const CONSTANTS = require('stremio/common/CONSTANTS');
|
|||
const MetaRowPlaceholder = require('./MetaRowPlaceholder');
|
||||
const styles = require('./styles');
|
||||
|
||||
const MetaRow = ({ className, title, message, items, itemComponent, deepLinks }) => {
|
||||
const MetaRow = ({ className, title, message, items, itemComponent, deepLinks, ...props }) => {
|
||||
return (
|
||||
<div className={classnames(className, styles['meta-row-container'])}>
|
||||
<div {...props} className={classnames(className, styles['meta-row-container'])}>
|
||||
{
|
||||
(typeof title === 'string' && title.length > 0) || (deepLinks && (typeof deepLinks.discover === 'string' || typeof deepLinks.library === 'string')) ?
|
||||
<div className={styles['header-container']}>
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ const Button = require('stremio/common/Button');
|
|||
const CONSTANTS = require('stremio/common/CONSTANTS');
|
||||
const styles = require('./styles');
|
||||
|
||||
const MetaRowPlaceholder = ({ className, title, deepLinks }) => {
|
||||
const MetaRowPlaceholder = ({ className, title, deepLinks, ...props }) => {
|
||||
return (
|
||||
<div className={classnames(className, styles['meta-row-placeholder-container'])}>
|
||||
<div {...props} className={classnames(className, styles['meta-row-placeholder-container'])}>
|
||||
<div className={styles['header-container']}>
|
||||
<div className={styles['title-container']} title={typeof title === 'string' && title.length > 0 ? title : null}>
|
||||
{typeof title === 'string' && title.length > 0 ? title : null}
|
||||
|
|
|
|||
Loading…
Reference in a new issue