diff --git a/governance/ui/src/components/CouncilInformation/CouncilInformation.tsx b/governance/ui/src/components/CouncilInformation/CouncilInformation.tsx index b1ee4b58a..bb2756db2 100644 --- a/governance/ui/src/components/CouncilInformation/CouncilInformation.tsx +++ b/governance/ui/src/components/CouncilInformation/CouncilInformation.tsx @@ -1,11 +1,9 @@ import { Flex, Heading, Icon, Text } from '@chakra-ui/react'; import councils, { CouncilSlugs } from '../../utils/councils'; -import { useGetCouncilMembers } from '../../queries/useGetCouncilMembers'; import { CouncilImage } from '../CouncilImage'; import { Link } from 'react-router-dom'; export default function CouncilInformation({ activeCouncil }: { activeCouncil: CouncilSlugs }) { - const { data: getCouncilMembers } = useGetCouncilMembers(activeCouncil); const council = councils.find((council) => council.slug === activeCouncil); return ( @@ -45,7 +43,7 @@ export default function CouncilInformation({ activeCouncil }: { activeCouncil: C px="2" py="1" > - Council Seats: {getCouncilMembers?.length} + Council Seats: {council?.seats} Nominate Yourself for the {activeCouncil} Council - diff --git a/governance/ui/src/components/UserProfileForm/UserProfileForm.tsx b/governance/ui/src/components/UserProfileForm/UserProfileForm.tsx index 22184b943..d8ba77480 100644 --- a/governance/ui/src/components/UserProfileForm/UserProfileForm.tsx +++ b/governance/ui/src/components/UserProfileForm/UserProfileForm.tsx @@ -79,7 +79,7 @@ export function UserProfileForm() { associatedAddresses: '', bannerImageId: '', bannerUrl: '', - delegationPitch: getValues('delegationPitch')!, + delegationPitch: getValues('delegationPitch')! ?? ' ', discord: getValues('discord')!, ens: '', github: getValues('github')!, diff --git a/governance/ui/src/utils/councils.ts b/governance/ui/src/utils/councils.ts index 1eb7584ba..7a56c3180 100644 --- a/governance/ui/src/utils/councils.ts +++ b/governance/ui/src/utils/councils.ts @@ -3,6 +3,7 @@ import { getCouncilContract } from './contracts'; const councils: { title: string; slug: CouncilSlugs; + seats: number; image: string; address: string; description: string; @@ -12,6 +13,7 @@ const councils: { { title: 'Spartan Council', slug: 'spartan', + seats: 8, image: '/councils/sc.svg', address: getCouncilContract('spartan').address, description: @@ -22,6 +24,7 @@ const councils: { { title: 'Ambassador Council', slug: 'ambassador', + seats: 5, image: '/councils/ac.svg', address: getCouncilContract('ambassador').address, description: @@ -32,6 +35,7 @@ const councils: { { title: 'Treasury Council', slug: 'treasury', + seats: 4, image: '/councils/tc.svg', address: getCouncilContract('treasury').address, description: