mirror of
https://github.com/wassname/talk.git
synced 2026-10-03 13:02:47 +08:00
add some proptypes
This commit is contained in:
1 parent
d5ff9d3eeb
commit
55cdc98303
1 file changed
+4
-2
@@ -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