Skip to content

Commit

Permalink
Replace story.image for story.thumbnail (#4793)
Browse files Browse the repository at this point in the history
Summary:
The Story component expects the property to be named "thumbnail" https://github.com/relayjs/relay-examples/blob/main/newsfeed/src/components/Story.tsx#L24

Pull Request resolved: #4793

Reviewed By: evanyeung

Differential Revision: D63033028

Pulled By: captbaritone

fbshipit-source-id: 12c3c0bb3a3770bc43479710b0c62569b8691ce6
  • Loading branch information
theodorekouzelis authored and facebook-github-bot committed Sep 19, 2024
1 parent adaf8af commit e414904
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/tutorial/fragments-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const NewsfeedQuery = graphql`
url
}
}
image {
thumbnail {
url
}
}
Expand Down Expand Up @@ -56,7 +56,7 @@ export default function Story({story}: Props) {
<Heading>{story.title}</Heading>
// change-line
<Timestamp time={story.createdAt} /> // Add this line
<Image image={story.image} />
<Image image={story.thumbnail} />
<StorySummary summary={story.summary} />
</Card>
);
Expand Down Expand Up @@ -95,7 +95,7 @@ const StoryFragment = graphql`
url
}
}
image {
thumbnail {
url
}
}
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function Story({story}: Props) {
<Heading>{data.title}</Heading>
<PosterByline poster={data.poster} />
<Timestamp time={data.createdAt} />
<Image image={data.image} />
<Image image={data.thumbnail} />
<StorySummary summary={data.summary} />
</Card>
);
Expand Down

0 comments on commit e414904

Please sign in to comment.