mirror of
https://github.com/wassname/talk.git
synced 2026-08-06 13:41:02 +08:00
Adding proptypes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import styles from './SortOption.css';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default class SortOption extends React.Component {
|
||||
render() {
|
||||
@@ -16,3 +17,9 @@ export default class SortOption extends React.Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
SortOption.propTypes = {
|
||||
setSort: PropTypes.func.isRequired,
|
||||
active: PropTypes.bool.isRequired,
|
||||
label: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user