Skip to content

Commit

Permalink
Attempt to fix eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Wineshuga committed Dec 28, 2023
1 parent b4219b3 commit b38cc8a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/Mission.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ const Mission = () => {
};

const handleButtons = (id, reserved) => {
const leaveLabel = `Leave Mission ${id}`;
const joinLabel = `Join Mission ${id}`;

if (reserved) {
return (
<button
className="text-danger border-2 border-danger"
type="button"
onClick={() => dispatch(leaveMission({ id }))}
aria-label={leaveLabel}
>
Leave Mission
</button>
Expand All @@ -52,7 +48,6 @@ const Mission = () => {
className="text-secondary border-2"
type="button"
onClick={() => dispatch(joinMission({ id }))}
aria-label={joinLabel}
>
Join Mission
</button>
Expand All @@ -65,7 +60,7 @@ const Mission = () => {
<td className="mission-desc">
{
isMobile ? (
<Link to="Mission-details">
<Link to="Mission-details" aria-label={`Details for Mission ${item.name}`}>
<p>
{ item.desc }
</p>
Expand Down

0 comments on commit b38cc8a

Please sign in to comment.