mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 15:24:15 +08:00
add some proptypes
This commit is contained in:
@@ -74,10 +74,12 @@ class FlagBox extends Component {
|
||||
|
||||
FlagBox.propTypes = {
|
||||
actionSummaries: PropTypes.arrayOf(PropTypes.shape({
|
||||
|
||||
reason: PropTypes.string,
|
||||
count: PropTypes.number
|
||||
})).isRequired,
|
||||
actions: PropTypes.arrayOf(PropTypes.shape({
|
||||
|
||||
message: PropTypes.string,
|
||||
user: PropTypes.shape({username: PropTypes.string})
|
||||
})).isRequired
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user