From 8d2be8698d7d0ebdcaadc6ff70a1f21b66c44732 Mon Sep 17 00:00:00 2001 From: Kellar Date: Mon, 22 Apr 2024 18:41:39 +0100 Subject: [PATCH] cleanup --- src/components/pages/DaoDashboard/Info/DaoInfoHeader.tsx | 7 ++----- .../pages/DaoDashboard/Info/InfoGovernance.tsx | 4 ++-- src/components/pages/DaoDashboard/Info/ParentLink.tsx | 5 +---- src/components/pages/DaoSettings/components/index.tsx | 8 ++------ src/components/ui/icons/FavoriteIcon.tsx | 9 +++------ src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx | 6 +++--- src/components/ui/menus/OptionMenu/OptionsList.tsx | 1 - src/components/ui/utils/Sort.tsx | 3 +-- 8 files changed, 14 insertions(+), 29 deletions(-) diff --git a/src/components/pages/DaoDashboard/Info/DaoInfoHeader.tsx b/src/components/pages/DaoDashboard/Info/DaoInfoHeader.tsx index a95f170a71..557be222f4 100644 --- a/src/components/pages/DaoDashboard/Info/DaoInfoHeader.tsx +++ b/src/components/pages/DaoDashboard/Info/DaoInfoHeader.tsx @@ -98,13 +98,10 @@ export function DaoInfoHeader() { backgroundPosition="50%" /> )} - + {section.title} - + {section.link && section.link.position === 'start' && ( {section.link.text} )} diff --git a/src/components/pages/DaoDashboard/Info/InfoGovernance.tsx b/src/components/pages/DaoDashboard/Info/InfoGovernance.tsx index 02c9d8894c..50994defa3 100644 --- a/src/components/pages/DaoDashboard/Info/InfoGovernance.tsx +++ b/src/components/pages/DaoDashboard/Info/InfoGovernance.tsx @@ -111,7 +111,7 @@ export function InfoGovernance() { mb="0.25rem" > {t('titleVotingPeriod')} - + {governanceAzorius.votingStrategy?.votingPeriod?.formatted} @@ -123,7 +123,7 @@ export function InfoGovernance() { mb="0.25rem" > {t('titleQuorum')} - + {governanceAzorius.votingStrategy.quorumPercentage.formatted} diff --git a/src/components/pages/DaoDashboard/Info/ParentLink.tsx b/src/components/pages/DaoDashboard/Info/ParentLink.tsx index d496bbdcae..929a9273b0 100644 --- a/src/components/pages/DaoDashboard/Info/ParentLink.tsx +++ b/src/components/pages/DaoDashboard/Info/ParentLink.tsx @@ -37,10 +37,7 @@ export function ParentLink() { src="/images/arrow-up-left.svg" alt={t('parentLink')} /> - + {t('parentLink')} diff --git a/src/components/pages/DaoSettings/components/index.tsx b/src/components/pages/DaoSettings/components/index.tsx index 27c73bb252..0600645e5d 100644 --- a/src/components/pages/DaoSettings/components/index.tsx +++ b/src/components/pages/DaoSettings/components/index.tsx @@ -31,7 +31,7 @@ export function SettingsSection({ minHeight="6.25rem" minWidth="65%" > - {contentHeader || {contentTitle}} + {contentHeader || {contentTitle}} )} {descriptionContent || ( - + {descriptionText} )} diff --git a/src/components/ui/icons/FavoriteIcon.tsx b/src/components/ui/icons/FavoriteIcon.tsx index 14909680e4..ce4f6ac5df 100644 --- a/src/components/ui/icons/FavoriteIcon.tsx +++ b/src/components/ui/icons/FavoriteIcon.tsx @@ -1,4 +1,4 @@ -import { Box, BoxProps, IconButton, Tooltip } from '@chakra-ui/react'; +import { Box, BoxProps, Button, IconButton, Tooltip } from '@chakra-ui/react'; import { Star } from '@phosphor-icons/react'; import { utils } from 'ethers'; import { useMemo } from 'react'; @@ -20,13 +20,10 @@ export default function FavoriteIcon({ safeAddress, ...rest }: Props) { } onClick={() => toggleFavorite(safeAddress)} aria-label={t('favoriteTooltip')} diff --git a/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx b/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx index 886c879bfb..c00906d3f0 100644 --- a/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx +++ b/src/components/ui/menus/ManageDAO/ManageDAOMenu.tsx @@ -1,3 +1,4 @@ +import { Button } from '@chakra-ui/react'; import { ERC20FreezeVoting, MultisigFreezeVoting } from '@fractal-framework/fractal-contracts'; import { GearFine } from '@phosphor-icons/react'; import { useMemo, useCallback, useState, useEffect } from 'react'; @@ -247,13 +248,12 @@ export function ManageDAOMenu({ titleKey={canUserCreateProposal ? 'titleManageDAO' : 'titleViewDAODetails'} options={options} namespace="menu" + buttonAs={Button} buttonProps={{ + variant: 'tertiary', borderRadius: '0.25rem', p: '0.5rem', color: 'lilac-0', - variant: 'ghost', - _hover: { color: 'lilac--1', backgroundColor: 'white-alpha-04' }, - _active: { color: 'lilac--2' }, }} /> ); diff --git a/src/components/ui/menus/OptionMenu/OptionsList.tsx b/src/components/ui/menus/OptionMenu/OptionsList.tsx index bb9479554e..2137756bdc 100644 --- a/src/components/ui/menus/OptionMenu/OptionsList.tsx +++ b/src/components/ui/menus/OptionMenu/OptionsList.tsx @@ -47,7 +47,6 @@ export function OptionsList({ {t(option.optionKey)} diff --git a/src/components/ui/utils/Sort.tsx b/src/components/ui/utils/Sort.tsx index d045b44920..80f6697439 100644 --- a/src/components/ui/utils/Sort.tsx +++ b/src/components/ui/utils/Sort.tsx @@ -17,14 +17,13 @@ function SortMenuItem({ return ( - {t(labelKey)} + {t(labelKey)} ); }