mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 11:54:24 +08:00
19 lines
407 B
JavaScript
19 lines
407 B
JavaScript
import React from 'react';
|
|
import styles from './SortOption.css';
|
|
|
|
export default class SortOption extends React.Component {
|
|
render() {
|
|
return (
|
|
<label className={styles.label}>
|
|
<input
|
|
type="radio"
|
|
onChange={this.props.setSort}
|
|
checked={this.props.active}
|
|
className={styles.input}
|
|
/>
|
|
{this.props.label}
|
|
</label>
|
|
);
|
|
}
|
|
}
|