Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
add missing keys/ids
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Nov 8, 2018
1 parent 236cb73 commit a1a10a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ const STORIES = gql`
title
slug
primaryImage {
id
src
}
advertiser {
id
name
}
}
Expand Down Expand Up @@ -64,7 +66,7 @@ const Index = () => {
return (
<div className="card-columns">
{allStories.edges.map(edge => (
<Card>
<Card key={edge.node.id}>
<Imgix className="card-img" src={edge.node.primaryImage.src} title={edge.node.title} w="300" h="300" fit="crop" crop="faces,edges" />
<CardImgOverlay className="d-flex align-items-end" style={{ background: 'linear-gradient(to top, #000000bf, #0000)' }}>
<Col className="px-1">
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/pages/story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const STORY = gql`
teaser
body
primaryImage {
id
src
}
advertiser {
Expand Down

0 comments on commit a1a10a1

Please sign in to comment.