mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 09:42:13 +00:00
onSeeAllButtonClicked prop added in MetaRow
This commit is contained in:
parent
665e3500c4
commit
07cabd2700
1 changed files with 4 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ const MetaItem = require('stremio/common/MetaItem');
|
|||
const MetaRowPlaceholder = require('./MetaRowPlaceholder');
|
||||
const styles = require('./styles');
|
||||
|
||||
const MetaRow = ({ className, title, message, items, maximumItemsCount, itemMenuOptions }) => {
|
||||
const MetaRow = ({ className, title, message, items, maximumItemsCount, itemMenuOptions, onSeeAllButtonClicked }) => {
|
||||
maximumItemsCount = maximumItemsCount !== null && isFinite(maximumItemsCount) ? maximumItemsCount : 20;
|
||||
items = Array.isArray(items) ? items.slice(0, maximumItemsCount) : [];
|
||||
return (
|
||||
|
|
@ -38,7 +38,7 @@ const MetaRow = ({ className, title, message, items, maximumItemsCount, itemMenu
|
|||
<div key={index} className={classnames(styles['meta-item'], styles['poster-shape-poster'])} />
|
||||
))}
|
||||
</div>
|
||||
<Button className={styles['see-all-container']} title={'SEE ALL'}>
|
||||
<Button className={styles['see-all-container']} title={'SEE ALL'} onClick={onSeeAllButtonClicked}>
|
||||
<div className={styles['label']}>SEE ALL</div>
|
||||
<Icon className={styles['icon']} icon={'ic_arrow_thin_right'} />
|
||||
</Button>
|
||||
|
|
@ -58,7 +58,8 @@ MetaRow.propTypes = {
|
|||
posterShape: PropTypes.string
|
||||
})),
|
||||
maximumItemsCount: PropTypes.number,
|
||||
itemMenuOptions: PropTypes.any
|
||||
itemMenuOptions: PropTypes.any,
|
||||
onSeeAllButtonClicked: PropTypes.func
|
||||
};
|
||||
|
||||
module.exports = MetaRow;
|
||||
|
|
|
|||
Loading…
Reference in a new issue