You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
939 B
47 lines
939 B
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import MonitorToggleButton from 'Components/MonitorToggleButton';
|
|
import styles from './MovieCollectionLabel.css';
|
|
|
|
class MovieCollectionLabel extends Component {
|
|
|
|
//
|
|
// Lifecycle
|
|
|
|
constructor(props, context) {
|
|
super(props, context);
|
|
|
|
this.state = {
|
|
hasPosterError: false
|
|
};
|
|
}
|
|
|
|
render() {
|
|
const {
|
|
title,
|
|
monitored,
|
|
onMonitorTogglePress
|
|
} = this.props;
|
|
|
|
return (
|
|
<div>
|
|
<MonitorToggleButton
|
|
className={styles.monitorToggleButton}
|
|
monitored={monitored}
|
|
size={15}
|
|
onPress={onMonitorTogglePress}
|
|
/>
|
|
{title}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
MovieCollectionLabel.propTypes = {
|
|
title: PropTypes.string.isRequired,
|
|
monitored: PropTypes.bool.isRequired,
|
|
onMonitorTogglePress: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default MovieCollectionLabel;
|