Renames in Frontend

This commit is contained in:
Qstick
2020-05-15 23:32:52 -04:00
committed by ta264
parent ee4e44b81a
commit ee43ccf620
387 changed files with 4036 additions and 4364 deletions
@@ -0,0 +1,37 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Link from 'Components/Link/Link';
import styles from './SelectAuthorRow.css';
class SelectAuthorRow extends Component {
//
// Listeners
onPress = () => {
this.props.onAuthorSelect(this.props.id);
}
//
// Render
render() {
return (
<Link
className={styles.author}
component="div"
onPress={this.onPress}
>
{this.props.authorName}
</Link>
);
}
}
SelectAuthorRow.propTypes = {
id: PropTypes.number.isRequired,
authorName: PropTypes.string.isRequired,
onAuthorSelect: PropTypes.func.isRequired
};
export default SelectAuthorRow;