Skip to content

Commit 77b4d0c

Browse files
committed
linting error
1 parent 7fca170 commit 77b4d0c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/components/CalendarConfirmation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import React, { useEffect, useState } from "react";
33
import { useTranslation } from "react-i18next";
44
import { toast } from "react-toastify"
55
import moment from "moment";
6-
import { RESPOND_TO_EVENT_INVITATION } from "../Mutations/event";
76
import { Link } from "react-router-dom";
7+
import { RESPOND_TO_EVENT_INVITATION } from "../Mutations/event";
88

9-
const CalendarConfirmation = () => {
9+
function CalendarConfirmation() {
1010
const { t } = useTranslation()
1111
const [respondToEventInvitation] = useMutation(RESPOND_TO_EVENT_INVITATION)
1212
const params = new URLSearchParams(window.location.search)

src/components/EventGuestList.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
22
import { useQuery } from "@apollo/client";
3-
import { GET_ALL_USERS_QUERY } from "../Mutations/manageStudentMutations";
43
import { toast } from "react-toastify";
4+
import { GET_ALL_USERS_QUERY } from "../Mutations/manageStudentMutations";
55

6-
const EventGuestList = ({ selectedGuests, handleAddGuest }: { selectedGuests: string[], handleAddGuest: any }) => {
6+
function EventGuestList({ selectedGuests, handleAddGuest }: { selectedGuests: string[], handleAddGuest: any }) {
77
const getRoleColor = (role: string) => {
88
switch (role) {
99
case 'admin':
@@ -46,7 +46,6 @@ const EventGuestList = ({ selectedGuests, handleAddGuest }: { selectedGuests: st
4646
},
4747
fetchPolicy: 'network-only',
4848
onError: (error) => {
49-
console.log(error.message);
5049
toast.error(error.message);
5150
},
5251
},
@@ -87,7 +86,7 @@ const EventGuestList = ({ selectedGuests, handleAddGuest }: { selectedGuests: st
8786
className={`w-2 h-2 rounded-full ${getRoleColor(
8887
guest.role,
8988
)} mr-2`}
90-
></span>
89+
/>
9190
{guest.profile.firstName}{' '}
9291
{guest.profile.lastName} ({guest.role})
9392
</label>

0 commit comments

Comments
 (0)