Add common tag PropTypes (#5882)
This commit is contained in:
parent
71e1c8d3e6
commit
261a4f9efa
2 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
export * from './user-prop-types';
|
||||
export * from './default-children-prop-types';
|
||||
export * from './organization-prop-type';
|
||||
export * from './tag-prop-types';
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
import PropTypes from 'prop-types';
|
||||
|
||||
export const tagPropTypes = PropTypes.shape({
|
||||
id: PropTypes.number.isRequired,
|
||||
name: PropTypes.string.isRequired,
|
||||
hotness_score: PropTypes.number.isRequired,
|
||||
points: PropTypes.number.isRequired,
|
||||
bg_color_hex: PropTypes.string.isRequired,
|
||||
text_color_hex: PropTypes.string.isRequired,
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue