@@ -39,17 +39,19 @@ const RequestItem = React.forwardRef(({ index, request }, ref) => {
39
39
)
40
40
} )
41
41
42
+ export const requestPropTypes = {
43
+ createdAt : PropTypes . string . isRequired ,
44
+ description : PropTypes . string . isRequired ,
45
+ href : PropTypes . string . isRequired ,
46
+ img : PropTypes . shape ( Image . propTypes ) . isRequired ,
47
+ status : PropTypes . shape ( Badge . propTypes ) . isRequired ,
48
+ title : PropTypes . string . isRequired ,
49
+ updatedAt : PropTypes . string . isRequired ,
50
+ }
51
+
42
52
RequestItem . propTypes = {
43
53
index : PropTypes . number ,
44
- request : PropTypes . shape ( {
45
- createdAt : PropTypes . string . isRequired ,
46
- description : PropTypes . string . isRequired ,
47
- href : PropTypes . string . isRequired ,
48
- img : PropTypes . shape ( Image . propTypes ) . isRequired ,
49
- status : PropTypes . shape ( Badge . propTypes ) . isRequired ,
50
- title : PropTypes . string . isRequired ,
51
- updatedAt : PropTypes . string . isRequired ,
52
- } ) . isRequired ,
54
+ request : PropTypes . shape ( requestPropTypes ) . isRequired ,
53
55
}
54
56
55
57
RequestItem . defaultProps = {
0 commit comments