Skip to content

Commit 5be3533

Browse files
eslint err solved
1 parent dbcc3fd commit 5be3533

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

src/components/EventCalender/Yearly/YearlyEventCalender.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
* for each day. It allows navigation between years and provides
66
* functionality to expand and view events for specific days.
77
*
8-
* @component
9-
* @param {InterfaceCalendarProps} props - The props for the calendar component.
10-
* @param {InterfaceEvent[]} props.eventData - Array of event data to display.
11-
* @param {Function} props.refetchEvents - Function to refetch events.
12-
* @param {InterfaceIOrgList} [props.orgData] - Organization data for filtering events.
13-
* @param {string} [props.userRole] - Role of the user for access control.
14-
* @param {string} [props.userId] - ID of the user for filtering events they are attending.
8+
* @param props - The props for the calendar component.
9+
* @param eventData - Array of event data to display.
10+
* @param refetchEvents - Function to refetch events.
11+
* @param orgData - Organization data for filtering events.
12+
* @param userRole - Role of the user for access control.
13+
* @param userId - ID of the user for filtering events they are attending.
1514
*
16-
* @returns {JSX.Element} The rendered yearly calendar component.
15+
* @returns JSX.Element The rendered yearly calendar component.
1716
*
1817
* @remarks
1918
* - The calendar supports filtering events based on user role, organization data, and user ID.

src/components/EventListCard/EventListCard.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* for localization and handles navigation based on the presence of an organization ID.
77
*
88
* @param props - The properties passed to the component.
9-
* @param props.title - The title of the event. Defaults to "Dogs Care" if not provided.
10-
* @param props.description - The description of the event.
11-
* @param props.date - The date of the event.
12-
* @param props.location - The location of the event.
13-
* @param props.refetchEvents - Optional callback function to refetch events.
9+
* @param title - The title of the event. Defaults to "Dogs Care" if not provided.
10+
* @param description - The description of the event.
11+
* @param date - The date of the event.
12+
* @param location - The location of the event.
13+
* @param refetchEvents - Optional callback function to refetch events.
1414
*
1515
* @returns A JSX element representing the event card and its associated modal.
1616
*
@@ -30,7 +30,7 @@
3030
* ```
3131
*
3232
*/
33-
import React, { useState } from 'react';
33+
import React, { useState, JSX } from 'react';
3434
import { useTranslation } from 'react-i18next';
3535
import styles from 'style/app-fixed.module.css';
3636
import { Navigate, useParams } from 'react-router';
@@ -39,11 +39,11 @@ import type { InterfaceEvent } from 'types/Event/interface';
3939
/**
4040
* Props for the EventListCard component.
4141
*/
42-
interface InterfaceEventListCard extends InterfaceEvent {
42+
interface IEventListCard extends InterfaceEvent {
4343
refetchEvents?: () => void;
4444
}
4545

46-
function eventListCard(props: InterfaceEventListCard): JSX.Element {
46+
function eventListCard(props: IEventListCard): JSX.Element {
4747
const { t } = useTranslation('translation', {
4848
keyPrefix: 'eventListCard',
4949
});

0 commit comments

Comments
 (0)