File tree Expand file tree Collapse file tree 1 file changed +19
-22
lines changed
src/containers/daoExplorer Expand file tree Collapse file tree 1 file changed +19
-22
lines changed Original file line number Diff line number Diff line change @@ -314,29 +314,26 @@ export const DaoExplorer = () => {
314
314
} }
315
315
/>
316
316
) : (
317
- < CardsWrapper >
318
- { filters . quickFilter === 'featuredDaos' ? (
319
- < >
320
- { featuredDaoList ?. map (
321
- ( dao : IDao , index : React . Key | null | undefined ) => (
322
- < DaoCard key = { index } dao = { dao } />
323
- )
324
- ) }
325
- { isLoadingFeaturedDaos && (
326
- < Spinner size = "xl" variant = "primary" />
327
- ) }
328
- </ >
329
- ) : (
330
- < >
331
- { filteredDaoList ?. map (
332
- ( dao : IDao , index : React . Key | null | undefined ) => (
333
- < DaoCard key = { index } dao = { dao } />
334
- )
335
- ) }
336
- { isLoading && < Spinner size = "xl" variant = "primary" /> }
337
- </ >
317
+ < >
318
+ { ( isLoading || isLoadingFeaturedDaos ) && (
319
+ < div className = "flex h-72 w-full items-center justify-center" >
320
+ < Spinner size = "xl" variant = "primary" />
321
+ </ div >
338
322
) }
339
- </ CardsWrapper >
323
+ < CardsWrapper >
324
+ { filters . quickFilter === 'featuredDaos'
325
+ ? featuredDaoList ?. map (
326
+ ( dao : IDao , index : React . Key | null | undefined ) => (
327
+ < DaoCard key = { index } dao = { dao } />
328
+ )
329
+ )
330
+ : filteredDaoList ?. map (
331
+ ( dao : IDao , index : React . Key | null | undefined ) => (
332
+ < DaoCard key = { index } dao = { dao } />
333
+ )
334
+ ) }
335
+ </ CardsWrapper >
336
+ </ >
340
337
) }
341
338
</ MainContainer >
342
339
{ totalDaos != null &&
You can’t perform that action at this time.
0 commit comments