Skip to content

Commit be03eed

Browse files
committed
format
1 parent bd30782 commit be03eed

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

src/components/Comments.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ const Comments = (props) => {
124124
<div>
125125
{data.attachment &&
126126
data.attachment.map((obj) => (
127-
<img src={obj.url} key={obj.id} alt='attachment' height='100' />
127+
<img
128+
src={obj.url}
129+
key={obj.id}
130+
alt='attachment'
131+
height='100'
132+
/>
128133
))}
129134
</div>
130135
<div className='reply-action'>

src/pages/Story.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,15 @@ const Story = (props) => {
236236
)}
237237
</div>
238238
<div>
239-
{story.Attachment && story.Attachment.map((obj) => (
240-
<img key={obj.id} src={obj.url} alt='attachment' height='100' />
241-
))}
239+
{story.Attachment &&
240+
story.Attachment.map((obj) => (
241+
<img
242+
key={obj.id}
243+
src={obj.url}
244+
alt='attachment'
245+
height='100'
246+
/>
247+
))}
242248
</div>
243249
<Comments storyId={storyId} />
244250
</div>

0 commit comments

Comments
 (0)