Skip to content

Commit

Permalink
feat: hardcoding seats (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrX-SNX authored Aug 31, 2024
1 parent 31c6e75 commit 2cc3306
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -45,7 +43,7 @@ export default function CouncilInformation({ activeCouncil }: { activeCouncil: C
px="2"
py="1"
>
Council Seats: {getCouncilMembers?.length}
Council Seats: {council?.seats}
</Heading>
<Heading
fontSize="xs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function CouncilNominees({ activeCouncil }: { activeCouncil: Coun
/>
Nominate Yourself for the {activeCouncil} Council
</Text>
<Button size="xs" onClick={() => connect()}>
<Button size="xs" onClick={() => connect()} minW="100px">
Connect Wallet
</Button>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function UserProfileForm() {
associatedAddresses: '',
bannerImageId: '',
bannerUrl: '',
delegationPitch: getValues('delegationPitch')!,
delegationPitch: getValues('delegationPitch')! ?? ' ',
discord: getValues('discord')!,
ens: '',
github: getValues('github')!,
Expand Down
4 changes: 4 additions & 0 deletions governance/ui/src/utils/councils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getCouncilContract } from './contracts';
const councils: {
title: string;
slug: CouncilSlugs;
seats: number;
image: string;
address: string;
description: string;
Expand All @@ -12,6 +13,7 @@ const councils: {
{
title: 'Spartan Council',
slug: 'spartan',
seats: 8,
image: '/councils/sc.svg',
address: getCouncilContract('spartan').address,
description:
Expand All @@ -22,6 +24,7 @@ const councils: {
{
title: 'Ambassador Council',
slug: 'ambassador',
seats: 5,
image: '/councils/ac.svg',
address: getCouncilContract('ambassador').address,
description:
Expand All @@ -32,6 +35,7 @@ const councils: {
{
title: 'Treasury Council',
slug: 'treasury',
seats: 4,
image: '/councils/tc.svg',
address: getCouncilContract('treasury').address,
description:
Expand Down

0 comments on commit 2cc3306

Please sign in to comment.