@@ -13,6 +13,7 @@ import { toast } from 'react-toastify';
13
13
import { Icon } from '@iconify/react' ;
14
14
15
15
import DataTable from '../components/DataTable' ;
16
+ import OrganizationTableSkeleton from '../Skeletons/Organazition.skeleton' ;
16
17
17
18
export interface Admin {
18
19
id : string ;
@@ -303,7 +304,7 @@ const Organizations = () => {
303
304
) ;
304
305
305
306
return (
306
- < div className = ' font-serif' >
307
+ < div className = " font-serif" >
307
308
{ /* =========================== Start:: CreateOrganizationModel =============================== */ }
308
309
< CreateOrganizationModal
309
310
createOrganizationModel = { createOrganizationModel }
@@ -314,8 +315,9 @@ const Organizations = () => {
314
315
315
316
{ /* =========================== Start:: delete Session Model =============================== */ }
316
317
< div
317
- className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${ deleteOrganizationModel === true ? 'block' : 'hidden'
318
- } `}
318
+ className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${
319
+ deleteOrganizationModel === true ? 'block' : 'hidden'
320
+ } `}
319
321
>
320
322
< div className = "bg-white dark:bg-dark-bg w-full sm:w-3/4 md:w-1/2 xl:w-4/12 rounded-lg p-4 pb-8" >
321
323
< div className = "card-title w-full flex flex-wrap justify-center items-center " >
@@ -370,8 +372,9 @@ const Organizations = () => {
370
372
{ /* =========================== Start:: SendInviteModel =============================== */ }
371
373
372
374
< div
373
- className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${ sendInviteModel === true ? 'block' : 'hidden'
374
- } `}
375
+ className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${
376
+ sendInviteModel === true ? 'block' : 'hidden'
377
+ } `}
375
378
>
376
379
< div className = "bg-white dark:bg-dark-bg w-full sm:w-3/4 xl:w-4/12 rounded-lg p-4 pb-8" >
377
380
< div className = "card-title w-full flex flex-wrap justify-center items-center " >
@@ -429,8 +432,9 @@ const Organizations = () => {
429
432
{ /* =========================== Start:: ApproveMode =============================== */ }
430
433
431
434
< div
432
- className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${ approveOpen === true ? 'block' : 'hidden'
433
- } `}
435
+ className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${
436
+ approveOpen === true ? 'block' : 'hidden'
437
+ } `}
434
438
>
435
439
< div className = "bg-white dark:bg-dark-bg w-full sm:w-3/4 xl:w-4/12 rounded-lg p-4 pb-8" >
436
440
< div className = "card-title w-full flex flex-wrap justify-center items-center " >
@@ -488,8 +492,9 @@ const Organizations = () => {
488
492
{ /* =========================== Start:: RejectModal =============================== */ }
489
493
490
494
< div
491
- className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${ rejectOpen === true ? 'block' : 'hidden'
492
- } `}
495
+ className = { `h-screen w-screen bg-black fixed top-0 left-0 z-20 bg-opacity-30 backdrop-blur-sm flex items-center justify-center overflow-auto p-4 ${
496
+ rejectOpen === true ? 'block' : 'hidden'
497
+ } `}
493
498
>
494
499
< div className = "bg-white dark:bg-dark-bg w-full sm:w-3/4 xl:w-4/12 rounded-lg p-4 pb-8" >
495
500
< div className = "card-title w-full flex flex-wrap justify-center items-center " >
@@ -560,12 +565,15 @@ const Organizations = () => {
560
565
</ div >
561
566
</ div >
562
567
< div className = "" >
563
- < DataTable
564
- columns = { organizationColumns }
565
- data = { organizationData ? ( organizationData as [ any ] ) : [ ] }
566
- title = { t ( 'Organizations list' ) }
567
- loading = { getLoading }
568
- />
568
+ { getLoading ? (
569
+ < OrganizationTableSkeleton />
570
+ ) : (
571
+ < DataTable
572
+ columns = { organizationColumns }
573
+ data = { organizationData ? ( organizationData as [ any ] ) : [ ] }
574
+ title = { t ( 'Organizations list' ) }
575
+ />
576
+ ) }
569
577
</ div >
570
578
</ div >
571
579
</ div >
0 commit comments