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