6
6
* for localization and handles navigation based on the presence of an organization ID.
7
7
*
8
8
* @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.
14
14
*
15
15
* @returns A JSX element representing the event card and its associated modal.
16
16
*
30
30
* ```
31
31
*
32
32
*/
33
- import React , { useState } from 'react' ;
33
+ import React , { useState , JSX } from 'react' ;
34
34
import { useTranslation } from 'react-i18next' ;
35
35
import styles from 'style/app-fixed.module.css' ;
36
36
import { Navigate , useParams } from 'react-router' ;
@@ -39,11 +39,11 @@ import type { InterfaceEvent } from 'types/Event/interface';
39
39
/**
40
40
* Props for the EventListCard component.
41
41
*/
42
- interface InterfaceEventListCard extends InterfaceEvent {
42
+ interface IEventListCard extends InterfaceEvent {
43
43
refetchEvents ?: ( ) => void ;
44
44
}
45
45
46
- function eventListCard ( props : InterfaceEventListCard ) : JSX . Element {
46
+ function eventListCard ( props : IEventListCard ) : JSX . Element {
47
47
const { t } = useTranslation ( 'translation' , {
48
48
keyPrefix : 'eventListCard' ,
49
49
} ) ;
0 commit comments