-
Notifications
You must be signed in to change notification settings - Fork 1
/
all-recipes.js
42 lines (40 loc) · 1.03 KB
/
all-recipes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import PropTypes from 'prop-types';
const { arrayOf, number, shape, string } = PropTypes;
// Added proptypes
const AllRecipesPropTypes = shape({
allRecipes: shape({
edges: arrayOf(
shape({
node: shape({
fields: shape({
slug: string.isRequired
}).isRequired,
relationships: shape({
image: shape({
relationships: shape({
imageFile: shape({
localFile: shape({
childImageSharp: shape({
fluid: shape({
aspectRatio: number.isRequired,
base64: string.isRequired,
sizes: string.isRequired,
src: string.isRequired,
srcSet: string.isRequired
}).isRequired,
resize: shape({
src: string.isRequired
}).isRequired
}).isRequired
}).isRequired
}).isRequired
}).isRequired
}).isRequired
}).isRequired,
title: string.isRequired
}).isRequired
}).isRequired
).isRequired
})
}).isRequired;
export default AllRecipesPropTypes;