Skip to content

Commit f79420f

Browse files
author
Ethan Jon
committed
updated data
1 parent 451724c commit f79420f

27 files changed

+377
-73
lines changed

data/wordpress.sql

Lines changed: 359 additions & 55 deletions
Large diffs are not rendered by default.

react/components/share.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@ const Share = ({description, position, title, url, hackerNewsUrl, redditUrl}: Ob
7474
</div>
7575
)}
7676

77+
{redditUrl && (
78+
<div className='inline-block'>
79+
<a
80+
className={className}
81+
href={redditUrl}
82+
onClick={handleRedditClick}
83+
rel='noopener noreferrer'
84+
style={{backgroundColor: '#FF5700'}}
85+
target='_blank'
86+
>
87+
<IoSocialReddit className={iconClassName} />
88+
<span className='xs-hide'>{'Vote'}</span>
89+
</a>
90+
</div>
91+
)}
92+
7793
<div className='inline-block'>
7894
<a
7995
className={className}
@@ -84,7 +100,6 @@ const Share = ({description, position, title, url, hackerNewsUrl, redditUrl}: Ob
84100
target='_blank'
85101
>
86102
<IoSocialTwitter className={iconClassName} />
87-
<span className='xs-hide'>{'Tweet'}</span>
88103
</a>
89104
</div>
90105

@@ -101,21 +116,6 @@ const Share = ({description, position, title, url, hackerNewsUrl, redditUrl}: Ob
101116
</a>
102117
</div>
103118

104-
{redditUrl && (
105-
<div className='inline-block'>
106-
<a
107-
className={className}
108-
href={redditUrl}
109-
onClick={handleRedditClick}
110-
rel='noopener noreferrer'
111-
style={{backgroundColor: '#FF5700'}}
112-
target='_blank'
113-
>
114-
<IoSocialReddit className={iconClassName} />
115-
</a>
116-
</div>
117-
)}
118-
119119
<div className='inline-block'>
120120
<a
121121
className={className}

react/helpers/post-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ export function getFeaturedImageProps (postData: ?Object, {returnLargestSizeData
3030
return null
3131
}
3232

33-
let imageData = postData._embedded &&
33+
const imageData = postData._embedded &&
3434
postData._embedded['wp:featuredmedia'] &&
3535
postData._embedded['wp:featuredmedia'].length &&
3636
postData._embedded['wp:featuredmedia'][0]
3737

38-
if (!imageData) {
38+
if (!imageData || !imageData.media_details) {
3939
return null
4040
}
4141

-50.2 KB
Binary file not shown.
-11 KB
Binary file not shown.
-17.1 KB
Binary file not shown.
-232 KB
Binary file not shown.
-67.3 KB
Binary file not shown.
-196 KB
Binary file not shown.
-14.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)