Skip to content

Commit

Permalink
chore: classes cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Oct 29, 2024
1 parent 2319dd9 commit d9edbb9
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions src/containers/daoExplorer/daoExplorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ export const DaoExplorer = () => {

const showSortFilter = filters.quickFilter !== 'featuredDaos' && isConnected;

const filterGroupClassName = classNames('flex justify-between w-full', {
'flex flex-col items-center gap-y-3 md:flex-row md:justify-between':
isConnected,
});

const toggleGroupClassName = classNames('flex flex-row w-full', {
'grid w-full grid-cols-2 gap-1 text-center md:flex md:w-fit md:flex-row':
isConnected,
Expand All @@ -161,23 +166,12 @@ export const DaoExplorer = () => {
'flex w-full justify-center md:w-fit': isConnected,
});

const filterGroupClassName = classNames('flex justify-between w-full', {
'flex flex-col items-center gap-y-3 md:flex-row md:justify-between':
isConnected,
const buttonGroupContainerClassName = classNames('shrink-0', {
'flex w-full md:w-fit justify-end': filters.quickFilter === 'featuredDaos',
'flex gap-x-3 w-full md:w-fit justify-between':
isConnected && filters.quickFilter !== 'featuredDaos',
});

const buttonGroupContainerClassName = classNames(
'shrink-0',
{
'flex w-full md:w-fit justify-end':
filters.quickFilter === 'featuredDaos',
},
{
'flex gap-x-3 w-full md:w-fit justify-between':
isConnected && filters.quickFilter !== 'featuredDaos',
}
);

/*************************************************
* Render *
*************************************************/
Expand Down

0 comments on commit d9edbb9

Please sign in to comment.