Skip to content

Commit

Permalink
chore: center + single spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Nov 6, 2024
1 parent 80b54fc commit c47eda3
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions src/containers/daoExplorer/daoExplorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,29 +314,26 @@ export const DaoExplorer = () => {
}}
/>
) : (
<CardsWrapper>
{filters.quickFilter === 'featuredDaos' ? (
<>
{featuredDaoList?.map(
(dao: IDao, index: React.Key | null | undefined) => (
<DaoCard key={index} dao={dao} />
)
)}
{isLoadingFeaturedDaos && (
<Spinner size="xl" variant="primary" />
)}
</>
) : (
<>
{filteredDaoList?.map(
(dao: IDao, index: React.Key | null | undefined) => (
<DaoCard key={index} dao={dao} />
)
)}
{isLoading && <Spinner size="xl" variant="primary" />}
</>
<>
{(isLoading || isLoadingFeaturedDaos) && (
<div className="flex h-72 w-full items-center justify-center">
<Spinner size="xl" variant="primary" />
</div>
)}
</CardsWrapper>
<CardsWrapper>
{filters.quickFilter === 'featuredDaos'
? featuredDaoList?.map(
(dao: IDao, index: React.Key | null | undefined) => (
<DaoCard key={index} dao={dao} />
)
)
: filteredDaoList?.map(
(dao: IDao, index: React.Key | null | undefined) => (
<DaoCard key={index} dao={dao} />
)
)}
</CardsWrapper>
</>
)}
</MainContainer>
{totalDaos != null &&
Expand Down

0 comments on commit c47eda3

Please sign in to comment.