Skip to content

Commit

Permalink
Following.jsxを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuya-Sakai91 committed Feb 18, 2024
1 parent 7d854e8 commit 5abca7c
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions app/javascript/components/Following.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,21 @@ export default function Following({ isFollowing, userId, isWatching }) {
)}
</li>
<li className="following__dropdown-item a-dropdown__item">
<button
className="following-option a-dropdown__item-inner"
onClick={unfollow}>
<div className="following-option__inner">
<div className="following-option__label">フォローしない</div>
</div>
</button>
{!following && !watching ? (
<button className="following-option a-dropdown__item-inner is-active">
<div className="following-option__inner">
<div className="following-option__label">フォローしない</div>
</div>
</button>
) : (
<button
className="following-option a-dropdown__item-inner"
onClick={unfollow}>
<div className="following-option__inner">
<div className="following-option__label">フォローしない</div>
</div>
</button>
)}
</li>
</ul>
</div>
Expand Down

0 comments on commit 5abca7c

Please sign in to comment.