mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
First working version
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user