Skip to content

Commit

Permalink
無駄なdivを削除した。
Browse files Browse the repository at this point in the history
  • Loading branch information
eigoninaritai-naokichi committed Jan 12, 2024
1 parent a9d5cea commit c05eb46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions app/routes/app._index/components/latest-post-time-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export default function LatestPostTimeLine({
<div>
{postContents.map((postContent, index) => {
return (
<div key={index}>
<PostDisplay postContent={postContent} />
</div>
<PostDisplay key={index} postContent={postContent} />
);
})}
</div>
Expand Down
10 changes: 4 additions & 6 deletions app/routes/components/post-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ export default function PostDisplay({
const reactionName = reactionNames[index];

return (
<div key={index}>
<fetcher.Form method="post" action="app/like">
<input type="hidden" name="reaction" value={reactionType} />
<button type="submit">{reactionName}</button>
</fetcher.Form>
</div>
<fetcher.Form key={index} method="post" action="app/like">
<input type="hidden" name="reaction" value={reactionType} />
<button type="submit">{reactionName}</button>
</fetcher.Form>
);
})}
</div>
Expand Down

0 comments on commit c05eb46

Please sign in to comment.