Skip to content

Commit

Permalink
fix: lint check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
algoritmi4 committed May 24, 2024
1 parent b5a60c0 commit 0fdd3f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/features/eventPage/ui/HeaderDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function HeaderDetails({ event, handleOpenParticipantsPopup }: IHeaderDet
id="heart-icon"
extraUseClass={isFavorite ? "!fill-but-primary stroke-but-primary" : "stroke-text-black"}
className="absolute top-[76px] right-[30px] w-6 h-6 cursor-pointer duration-150 hoverscreen:hover:opacity-70"
// eslint-disable-next-line @typescript-eslint/no-misused-promises
onClick={isFavorite ? handleUnlikeEvent : handleLikeEvent}
/>
<div className="event_details flex flex-col space-y-[18px] text-[22px] text-neutral-800 mt-[30px]">
Expand Down
8 changes: 7 additions & 1 deletion src/widgets/eventPage/ui/Location.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export function Location({event}: ILocationProps): ReactElement {
const { isParticipant } = useAppSelector((state) => state.eventInfo);
const { eventId } = useParams<{eventId: string}>();

const { handleRegisterToEvent, handleLeaveFromEvent, handleLikeEvent, handleUnlikeEvent } = useEventActions(Number(eventId));
const {
handleRegisterToEvent,
handleLeaveFromEvent,
handleLikeEvent,
handleUnlikeEvent
} = useEventActions(Number(eventId));

return (
<section className="w-full mt-[90px]">
Expand All @@ -41,6 +46,7 @@ export function Location({event}: ILocationProps): ReactElement {
id="heart-icon"
extraUseClass={`stroke-white ${isFavorite ? "!fill-white" : ""}`}
className="w-6 h-6 ml-5 cursor-pointer duration-150 hoverscreen:hover:opacity-70"
// eslint-disable-next-line @typescript-eslint/no-misused-promises
onClick={isFavorite ? handleUnlikeEvent : handleLikeEvent}
/>
</div>
Expand Down

0 comments on commit 0fdd3f9

Please sign in to comment.