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.
Readarr/frontend/src/InteractiveImport/Artist/SelectArtistRow.js

38 lines
700 B

import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Link from 'Components/Link/Link';
import styles from './SelectArtistRow.css';
class SelectArtistRow extends Component {
//
// Listeners
onPress = () => {
this.props.onArtistSelect(this.props.id);
}
//
// Render
render() {
return (
<Link
className={styles.artist}
component="div"
onPress={this.onPress}
>
{this.props.artistName}
</Link>
);
}
}
SelectArtistRow.propTypes = {
id: PropTypes.number.isRequired,
artistName: PropTypes.string.isRequired,
onArtistSelect: PropTypes.func.isRequired
};
export default SelectArtistRow;