@@ -35,13 +35,13 @@ const ReviewBadge = styled.div`
35
35
justify-content: center;
36
36
` ;
37
37
38
- const FullReview : React . FC < { album : any } > = ( { album } ) => {
38
+ const FullReview : React . FC < { review : any } > = ( { review } ) => {
39
39
return (
40
40
< Card mt = { 5 } p = { 4 } width = { 1 } >
41
41
< Flex >
42
42
< Box width = { [ 1 , 1 , 1 / 3 ] } >
43
43
< ImageWrapper >
44
- < Image fluid = { album . coverArt . fluid } > </ Image >
44
+ < Image fluid = { review . coverArt . fluid } > </ Image >
45
45
</ ImageWrapper >
46
46
</ Box >
47
47
< Flex
@@ -53,32 +53,32 @@ const FullReview: React.FC<{ album: any }> = ({ album }) => {
53
53
< Flex >
54
54
< Box flex = "1 1 auto" >
55
55
< Text fontSize = { 4 } bold mb = { 1 } >
56
- { album . albumName }
56
+ { review . albumName }
57
57
</ Text >
58
- < Text mb = { 2 } > by { album . artistName } </ Text >
58
+ < Text mb = { 2 } > by { review . artistName } </ Text >
59
59
</ Box >
60
60
< ReviewBadge >
61
- < Text bold > { album . rating } </ Text >
61
+ < Text bold > { review . rating } </ Text >
62
62
</ ReviewBadge >
63
63
</ Flex >
64
64
< Text fontSize = { 1 } color = "subtext" >
65
- { album . label } < Span mx = { 1 } > -</ Span > { album . releaseDate }
65
+ { review . label } < Span mx = { 1 } > -</ Span > { review . releaseDate }
66
66
</ Text >
67
67
< Box py = { 3 } flex = "1 1 auto" >
68
- { renderRichText ( album . body . json ) }
68
+ { renderRichText ( review . body . json ) }
69
69
</ Box >
70
70
71
71
< Flex justifyContent = "space-between" alignItems = "flex-end" >
72
72
< div >
73
73
< Text fontSize = { 1 } color = "subtext" mb = { 1 } >
74
- written by { album . author . name }
74
+ written by { review . author . name }
75
75
</ Text >
76
76
< Text fontSize = { 1 } color = "subtext" >
77
- { album . createdAt }
77
+ { review . createdAt }
78
78
</ Text >
79
79
</ div >
80
80
< A
81
- href = { album . spotify }
81
+ href = { review . spotify }
82
82
target = "_blank"
83
83
bold
84
84
color = "spotify"
@@ -101,7 +101,7 @@ const Review: React.FC<{ data: any }> = ({ data }) => {
101
101
description = { `Review of ${ data . contentfulReview . albumName } by ${ data . contentfulReview . artistName } ` }
102
102
image = { 'http:' + data . contentfulReview . coverArt . fluid . src }
103
103
/>
104
- < FullReview album = { data . contentfulReview } />
104
+ < FullReview review = { data . contentfulReview } />
105
105
</ Layout >
106
106
) ;
107
107
} ;
0 commit comments