@@ -23,7 +23,7 @@ export default function UpcomingMeeting({ enable, setEnable }: Props) {
2323 return (
2424 < >
2525 < Transition appear show = { enable } as = { Fragment } >
26- < Dialog as = 'div' className = 'relative z-10 ' onClose = { closeModal } >
26+ < Dialog as = 'div' className = 'relative z-[100] ' onClose = { closeModal } >
2727 < TransitionChild
2828 as = { Fragment }
2929 enter = 'ease-out duration-300'
@@ -33,10 +33,10 @@ export default function UpcomingMeeting({ enable, setEnable }: Props) {
3333 leaveFrom = 'opacity-100'
3434 leaveTo = 'opacity-0'
3535 >
36- < div className = 'fixed inset-0 bg-black/75' />
36+ < div className = 'fixed inset-0 z-[100] bg-black/75' />
3737 </ TransitionChild >
3838
39- < div className = 'fixed inset-0 overflow-y-auto' >
39+ < div className = 'fixed inset-0 z-[110] overflow-y-auto' >
4040 < div className = 'flex min-h-full items-center justify-center p-4 text-center' >
4141 < TransitionChild
4242 as = { Fragment }
@@ -104,52 +104,42 @@ const MeetingList = () => {
104104 < div className = 'bg-gray-100 py-4 px-4 rounded flex flex-col gap-3' key = { call . id } >
105105 < div className = "space-y-2" >
106106 < p className = 'text-sm font-semibold text-gray-800' > { call . description } </ p >
107-
108- { call . isCreator ? (
109- < >
110- < p className = 'text-xs text-gray-600' >
111- < span className = 'font-medium' > Date:</ span > { formatDateTime ( new Date ( call . startsAt ) . toLocaleString ( ) ) }
112- </ p >
113-
114- { call . recipients && call . recipients . length > 0 && (
115- < div className = 'space-y-2' >
116- < p className = 'text-xs font-medium text-gray-700' > Meeting with:</ p >
117- < div className = 'flex flex-wrap gap-2' >
118- { call . recipients . map ( ( recipient : any ) => (
119- < div key = { recipient . id } className = 'flex items-center gap-1 bg-white px-2 py-1 rounded text-xs border border-gray-300' >
120- { recipient . image && (
121- < img
122- src = { recipient . image }
123- alt = { recipient . name }
124- className = 'h-5 w-5 rounded-full object-cover'
125- />
126- ) }
127- < span className = 'text-gray-700' > { recipient . name } </ span >
128- </ div >
129- ) ) }
130- </ div >
107+ < p className = 'text-xs text-gray-600' >
108+ < span className = 'font-medium' > Date:</ span > { formatDateTime ( new Date ( call . startsAt ) . toLocaleString ( ) ) }
109+ </ p >
110+
111+ < div className = 'space-y-2' >
112+ < p className = 'text-xs font-medium text-gray-700' > Meeting with:</ p >
113+ < div className = 'flex flex-wrap gap-2' >
114+ { call . isCreator
115+ ? ( call . recipients ?. length > 0
116+ ? call . recipients . map ( ( recipient : any ) => (
117+ < div key = { recipient . id } className = 'flex items-center gap-1 bg-white px-2 py-1 rounded text-xs border border-gray-300' >
118+ { recipient . image && (
119+ < img
120+ src = { recipient . image }
121+ alt = { recipient . name }
122+ className = 'h-5 w-5 rounded-full object-cover'
123+ />
124+ ) }
125+ < span className = 'text-gray-700' > { recipient . name } </ span >
126+ </ div >
127+ ) )
128+ : < span className = 'text-xs text-gray-500' > No recipients added yet</ span > )
129+ : (
130+ < div className = 'flex items-center gap-2 bg-white px-2 py-1 rounded text-xs border border-gray-300' >
131+ { call . creatorImage && (
132+ < img
133+ src = { call . creatorImage }
134+ alt = { call . creatorName }
135+ className = 'h-5 w-5 rounded-full object-cover'
136+ />
137+ ) }
138+ < span className = 'text-gray-700' > { call . creatorName || 'Unknown' } </ span >
131139 </ div >
132- ) }
133- </ >
134- ) : (
135- < >
136- < div className = 'flex items-center gap-2' >
137- { call . creatorImage && (
138- < img
139- src = { call . creatorImage }
140- alt = { call . creatorName }
141- className = 'h-6 w-6 rounded-full object-cover'
142- />
143- ) }
144- < p className = 'text-xs text-gray-600' >
145- < span className = 'font-medium' > Scheduled by:</ span > { call . creatorName || 'Unknown' }
146- </ p >
147- </ div >
148- < p className = 'text-xs text-gray-600' >
149- < span className = 'font-medium' > Date:</ span > { formatDateTime ( new Date ( call . startsAt ) . toLocaleString ( ) ) }
150- </ p >
151- </ >
152- ) }
140+ )
141+ }
142+ </ div >
153143 </ div >
154144
155145 < div className = "flex items-center gap-2" >
0 commit comments