Skip to content

Commit 548f6c1

Browse files
committed
fix up community partners
1 parent cd6ce89 commit 548f6c1

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

components/awards/community-partners.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class CommunityPartners extends React.Component {
4343
<Title>What&apos;s next for you? Some local ideas:</Title>
4444
{communityPartners.map((partner) => partner && partner.logo && (
4545
<PartnerBox>
46-
<PartnerLogo style={{ backgroundImage: `url(${partner.logo.large.url})` }} />
46+
<PartnerLogo style={{ backgroundImage: `url(${partner.logo})` }} />
4747
<PartnerInfo>
4848
<p>{partner.display_url}</p>
4949
<p>{partner.blurb}</p>

pages/e/[event]/[config]/awards.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default withRouter(class Index extends React.Component {
4949

5050
render() {
5151
const { event, communityPartners, hackathons } = this.props;
52-
const groupedPartners = this.groupsOf(communityPartners, 2);
52+
const groupedPartners = this.groupsOf(communityPartners.filter((partner) => partner.logo), 2);
5353
const groupedHackathons = this.groupsOf(hackathons, 10);
5454

5555
return (

server/srndApi.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ export default class EventInfoApi {
5555
}
5656
}`);
5757

58-
return res.cms.globalSponsors.items.map((communityPartner) => ({
59-
display_url: communityPartner.display_url,
58+
return res.cms.communityPartners.items.map((communityPartner) => ({
59+
display_url: communityPartner.displayUrl,
6060
blurb: communityPartner.blurb,
61-
logo: {
62-
large: communityPartner.logo?.url
63-
}
61+
logo: communityPartner.logo?.url
6462
}))
6563
}
6664

0 commit comments

Comments
 (0)