diff --git a/src/common/MetaRow/MetaRow.js b/src/common/MetaRow/MetaRow.js index 207aea15d..9aeb530d7 100644 --- a/src/common/MetaRow/MetaRow.js +++ b/src/common/MetaRow/MetaRow.js @@ -10,9 +10,9 @@ const CONSTANTS = require('stremio/common/CONSTANTS'); const MetaRowPlaceholder = require('./MetaRowPlaceholder'); const styles = require('./styles'); -const MetaRow = React.forwardRef(({ className, title, message, items, itemComponent, deepLinks, ...props }, ref) => { +const MetaRow = ({ className, title, message, items, itemComponent, deepLinks }) => { return ( -
+
{ (typeof title === 'string' && title.length > 0) || (deepLinks && (typeof deepLinks.discover === 'string' || typeof deepLinks.library === 'string')) ?
@@ -59,9 +59,7 @@ const MetaRow = React.forwardRef(({ className, title, message, items, itemCompon }
); -}); - -MetaRow.displayName = 'MetaRow'; +}; MetaRow.Placeholder = MetaRowPlaceholder; diff --git a/src/common/MetaRow/MetaRowPlaceholder/MetaRowPlaceholder.js b/src/common/MetaRow/MetaRowPlaceholder/MetaRowPlaceholder.js index 3b008ea9e..5ad9ccea5 100644 --- a/src/common/MetaRow/MetaRowPlaceholder/MetaRowPlaceholder.js +++ b/src/common/MetaRow/MetaRowPlaceholder/MetaRowPlaceholder.js @@ -8,9 +8,9 @@ const Button = require('stremio/common/Button'); const CONSTANTS = require('stremio/common/CONSTANTS'); const styles = require('./styles'); -const MetaRowPlaceholder = React.forwardRef(({ className, title, deepLinks, ...props }, ref) => { +const MetaRowPlaceholder = ({ className, title, deepLinks }) => { return ( -
+
0 ? title : null}> {typeof title === 'string' && title.length > 0 ? title : null} @@ -37,9 +37,7 @@ const MetaRowPlaceholder = React.forwardRef(({ className, title, deepLinks, ...p
); -}); - -MetaRowPlaceholder.displayName = 'MetaRowPlaceholder'; +}; MetaRowPlaceholder.propTypes = { className: PropTypes.string,