From 12bde8e7f8a1e04a4211edb9fa6ab24cd05329d0 Mon Sep 17 00:00:00 2001 From: David Colon <38386583+Da-Colon@users.noreply.github.com> Date: Mon, 11 Mar 2024 14:59:49 -0400 Subject: [PATCH] prettier ran --- global.d.ts | 2 +- index.html | 17 ++++++----- .../Activity/ActivityGovernance.tsx | 2 +- src/components/ProposalTemplates/index.tsx | 2 +- src/components/Proposals/ProposalsList.tsx | 2 +- .../pages/DaoDashboard/Info/ParentLink.tsx | 2 +- src/components/ui/cards/DAOInfoCard.tsx | 2 +- src/components/ui/containers/InfoBox.tsx | 2 +- src/components/ui/icons/IconWithText.tsx | 2 +- .../modals/ConfirmModifyGovernanceModal.tsx | 2 +- src/components/ui/page/Header/Breadcrumbs.tsx | 2 +- src/components/ui/page/Header/index.tsx | 28 +++++++++---------- .../ui/page/Navigation/NavigationLink.tsx | 2 +- src/components/ui/page/Navigation/index.tsx | 2 +- src/hooks/DAO/useDAOController.ts | 2 +- src/pages/DAOController.tsx | 12 ++++++-- src/pages/daos/[daoAddress]/new/index.tsx | 12 ++++---- .../[daoAddress]/proposal-templates/index.tsx | 2 +- .../daos/[daoAddress]/proposals/index.tsx | 2 +- .../NetworkConfig/rainbow-kit.config.ts | 5 +++- src/providers/Providers.tsx | 4 +-- src/router.tsx | 2 +- tsconfig.json | 12 ++------ vite.config.mts | 6 ++-- 24 files changed, 66 insertions(+), 62 deletions(-) diff --git a/global.d.ts b/global.d.ts index 2361dd89e7..c13c728351 100644 --- a/global.d.ts +++ b/global.d.ts @@ -5,6 +5,6 @@ export {}; declare global { interface Window { hj: ((...params: any[]) => void) & { q: [string, any[]][] }; - _hjSettings: { hjid: number; hjsv: number; }; + _hjSettings: { hjid: number; hjsv: number }; } } diff --git a/index.html b/index.html index a2f59c601c..bc787b571f 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@
- + - + diff --git a/src/components/Activity/ActivityGovernance.tsx b/src/components/Activity/ActivityGovernance.tsx index 657643ebb6..812ec81667 100644 --- a/src/components/Activity/ActivityGovernance.tsx +++ b/src/components/Activity/ActivityGovernance.tsx @@ -1,7 +1,7 @@ import { Flex } from '@chakra-ui/react'; import { format } from 'date-fns'; import { useTranslation } from 'react-i18next'; -import { Link } from "react-router-dom"; +import { Link } from 'react-router-dom'; import { DAO_ROUTES } from '../../constants/routes'; import { useFractal } from '../../providers/App/AppProvider'; import { FractalProposal, ActivityEventType, SnapshotProposal } from '../../types'; diff --git a/src/components/ProposalTemplates/index.tsx b/src/components/ProposalTemplates/index.tsx index 16b5c57143..c20e69f5d8 100644 --- a/src/components/ProposalTemplates/index.tsx +++ b/src/components/ProposalTemplates/index.tsx @@ -1,6 +1,6 @@ import { Flex, Box, Button } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; -import { Link } from "react-router-dom"; +import { Link } from 'react-router-dom'; import { DAO_ROUTES } from '../../constants/routes'; import useSubmitProposal from '../../hooks/DAO/proposal/useSubmitProposal'; import { useFractal } from '../../providers/App/AppProvider'; diff --git a/src/components/Proposals/ProposalsList.tsx b/src/components/Proposals/ProposalsList.tsx index 89572c7b76..f180efc871 100644 --- a/src/components/Proposals/ProposalsList.tsx +++ b/src/components/Proposals/ProposalsList.tsx @@ -1,6 +1,6 @@ import { Button, Box, Flex } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; -import { Link } from "react-router-dom"; +import { Link } from 'react-router-dom'; import { DAO_ROUTES } from '../../constants/routes'; import useSubmitProposal from '../../hooks/DAO/proposal/useSubmitProposal'; import { useFractal } from '../../providers/App/AppProvider'; diff --git a/src/components/pages/DaoDashboard/Info/ParentLink.tsx b/src/components/pages/DaoDashboard/Info/ParentLink.tsx index 639909fae1..0a9d4b4fa9 100644 --- a/src/components/pages/DaoDashboard/Info/ParentLink.tsx +++ b/src/components/pages/DaoDashboard/Info/ParentLink.tsx @@ -1,6 +1,6 @@ import { Link, HStack, Image, Text } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; -import { Link as RouterLink } from "react-router-dom"; +import { Link as RouterLink } from 'react-router-dom'; import { DAO_ROUTES } from '../../../../constants/routes'; import { useFractal } from '../../../../providers/App/AppProvider'; diff --git a/src/components/ui/cards/DAOInfoCard.tsx b/src/components/ui/cards/DAOInfoCard.tsx index c918e52ab1..f5d6ca5c8a 100644 --- a/src/components/ui/cards/DAOInfoCard.tsx +++ b/src/components/ui/cards/DAOInfoCard.tsx @@ -1,5 +1,5 @@ import { Box, Flex, Text, Spacer, HStack, FlexProps, Link, Center } from '@chakra-ui/react'; -import { Link as RouterLink } from "react-router-dom"; +import { Link as RouterLink } from 'react-router-dom'; import { DAO_ROUTES } from '../../../constants/routes'; import useDisplayName from '../../../hooks/utils/useDisplayName'; import { useFractal } from '../../../providers/App/AppProvider'; diff --git a/src/components/ui/containers/InfoBox.tsx b/src/components/ui/containers/InfoBox.tsx index 54bb9eabe3..e4b2bdaa2d 100644 --- a/src/components/ui/containers/InfoBox.tsx +++ b/src/components/ui/containers/InfoBox.tsx @@ -27,7 +27,7 @@ export function InfoBox({ onClick={ to ? () => { - navigate(to); + navigate(to); } : undefined } diff --git a/src/components/ui/icons/IconWithText.tsx b/src/components/ui/icons/IconWithText.tsx index 9daa419ca1..247893c75a 100644 --- a/src/components/ui/icons/IconWithText.tsx +++ b/src/components/ui/icons/IconWithText.tsx @@ -1,4 +1,4 @@ -import { Link , HStack, Text } from '@chakra-ui/react'; +import { Link, HStack, Text } from '@chakra-ui/react'; import { ReactNode } from 'react'; interface IconWithTextProps { diff --git a/src/components/ui/modals/ConfirmModifyGovernanceModal.tsx b/src/components/ui/modals/ConfirmModifyGovernanceModal.tsx index e6cb682e73..bd0be0f7d1 100644 --- a/src/components/ui/modals/ConfirmModifyGovernanceModal.tsx +++ b/src/components/ui/modals/ConfirmModifyGovernanceModal.tsx @@ -1,6 +1,6 @@ import { Box, Button, Divider, Text } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; -import { Link } from "react-router-dom"; +import { Link } from 'react-router-dom'; import { DAO_ROUTES } from '../../../constants/routes'; import { useFractal } from '../../../providers/App/AppProvider'; diff --git a/src/components/ui/page/Header/Breadcrumbs.tsx b/src/components/ui/page/Header/Breadcrumbs.tsx index f1f21c9509..1c642e2bbd 100644 --- a/src/components/ui/page/Header/Breadcrumbs.tsx +++ b/src/components/ui/page/Header/Breadcrumbs.tsx @@ -1,4 +1,4 @@ -import { Link , Breadcrumb, BreadcrumbItem, BreadcrumbLink, Text } from '@chakra-ui/react'; +import { Link, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Text } from '@chakra-ui/react'; export type Crumb = { terminus: string; diff --git a/src/components/ui/page/Header/index.tsx b/src/components/ui/page/Header/index.tsx index 4175ab82f2..1b6595da76 100644 --- a/src/components/ui/page/Header/index.tsx +++ b/src/components/ui/page/Header/index.tsx @@ -5,25 +5,25 @@ import { FavoritesMenu } from '../../menus/FavoritesMenu'; function Header() { return ( +