Skip to content

Commit 4f1d76c

Browse files
authored
Merge pull request #172 from kailash360/story-product-171
Fix #171: Added product logo in story page
2 parents 903b340 + 7a8f625 commit 4f1d76c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/pages/Story.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ const Story = (props) => {
193193
</Button>
194194
</>
195195
}
196+
<img
197+
src={story.product.logo?.url}
198+
className='preview image'
199+
style={{ width: '150px' }}
200+
alt={story.product.Name}
201+
/>
196202
</div>
197203
</div>
198204
</div>

src/services/user_story.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ const userStory = {
113113
url
114114
}
115115
createdAt
116+
product {
117+
Name
118+
logo {
119+
url
120+
}
121+
}
116122
}
117123
}
118124
${BASIC_STORY_INFO_FRAGMENT}

0 commit comments

Comments
 (0)