From 369bf576c02c81442dd2985ae5a38612efdbb963 Mon Sep 17 00:00:00 2001 From: Malik Zulqurnain Date: Fri, 13 Dec 2024 20:54:05 +0500 Subject: [PATCH] CI --- .../state/api/communities/getPinnedTokenByCommunityId.ts | 8 ++++---- .../scripts/state/api/tokens/getTokenByCommunityId.ts | 4 ++-- .../CommunityManagement/Integrations/Token/Token.tsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/commonwealth/client/scripts/state/api/communities/getPinnedTokenByCommunityId.ts b/packages/commonwealth/client/scripts/state/api/communities/getPinnedTokenByCommunityId.ts index 17fa10f9691..26783740797 100644 --- a/packages/commonwealth/client/scripts/state/api/communities/getPinnedTokenByCommunityId.ts +++ b/packages/commonwealth/client/scripts/state/api/communities/getPinnedTokenByCommunityId.ts @@ -4,7 +4,7 @@ import { z } from 'zod'; const FETCH_PINNED_TOKEN_STALE_TIME = 60 * 3_000; // 3 mins -type UseFetchTokensProps = Omit< +type UseGetPinnedTokensByCommunityIdProps = Omit< z.infer, 'community_ids' > & { @@ -12,11 +12,11 @@ type UseFetchTokensProps = Omit< enabled?: boolean; }; -const useGetPinnedTokenByCommunityId = ({ +const useGetPinnedTokensByCommunityId = ({ community_ids, with_chain_node, enabled, -}: UseFetchTokensProps) => { +}: UseGetPinnedTokensByCommunityIdProps) => { return trpc.community.getPinnedTokens.useQuery( { community_ids: community_ids.join(','), @@ -29,4 +29,4 @@ const useGetPinnedTokenByCommunityId = ({ ); }; -export default useGetPinnedTokenByCommunityId; +export default useGetPinnedTokensByCommunityId; diff --git a/packages/commonwealth/client/scripts/state/api/tokens/getTokenByCommunityId.ts b/packages/commonwealth/client/scripts/state/api/tokens/getTokenByCommunityId.ts index 2076e328d14..022203199db 100644 --- a/packages/commonwealth/client/scripts/state/api/tokens/getTokenByCommunityId.ts +++ b/packages/commonwealth/client/scripts/state/api/tokens/getTokenByCommunityId.ts @@ -4,7 +4,7 @@ import { z } from 'zod'; const FETCH_TOKEN_STALE_TIME = 60 * 3_000; // 3 mins -type UseFetchTokensProps = z.infer & { +type UseGetTokenByCommunityIdProps = z.infer & { enabled?: boolean; }; @@ -12,7 +12,7 @@ const useGetTokenByCommunityId = ({ community_id, with_stats = true, enabled, -}: UseFetchTokensProps) => { +}: UseGetTokenByCommunityIdProps) => { return trpc.launchpadToken.getToken.useQuery( { community_id, diff --git a/packages/commonwealth/client/scripts/views/pages/CommunityManagement/Integrations/Token/Token.tsx b/packages/commonwealth/client/scripts/views/pages/CommunityManagement/Integrations/Token/Token.tsx index e900c0975f7..02bb59d9b6d 100644 --- a/packages/commonwealth/client/scripts/views/pages/CommunityManagement/Integrations/Token/Token.tsx +++ b/packages/commonwealth/client/scripts/views/pages/CommunityManagement/Integrations/Token/Token.tsx @@ -49,7 +49,7 @@ const Token = () => { ); return ( -
+