From c74e217a90b386971c788f9bcb4c7c16ac45aa4c Mon Sep 17 00:00:00 2001 From: Emmanuel Mutisya Date: Thu, 10 Apr 2025 09:32:26 +0300 Subject: [PATCH] chore: pass i18n instance to the outcomes pillar --- govtool/frontend/src/pages/GovernanceActionOutComes.tsx | 5 ++++- govtool/frontend/src/types/@intersect.mbo.d.ts | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/govtool/frontend/src/pages/GovernanceActionOutComes.tsx b/govtool/frontend/src/pages/GovernanceActionOutComes.tsx index 79db53f63..100250c23 100644 --- a/govtool/frontend/src/pages/GovernanceActionOutComes.tsx +++ b/govtool/frontend/src/pages/GovernanceActionOutComes.tsx @@ -2,7 +2,7 @@ import { Box, CircularProgress } from "@mui/material"; import React, { Suspense } from "react"; import { Footer, TopNav } from "@/components/organisms"; import { useCardano } from "@/context"; -import { useScreenDimension } from "@/hooks"; +import { useScreenDimension, useTranslation } from "@/hooks"; import { Background } from "@/components/atoms"; const GovernanceActionsOutcomes = React.lazy( @@ -12,6 +12,8 @@ const GovernanceActionsOutcomes = React.lazy( export const GovernanceActionOutComesPillar = () => { const { pagePadding } = useScreenDimension(); const { walletApi, ...context } = useCardano(); + const { i18n } = useTranslation(); + return ( { apiUrl={import.meta.env.VITE_OUTCOMES_API_URL} ipfsGateway={import.meta.env.VITE_IPFS_GATEWAY} walletAPI={{ ...context, ...walletApi }} + i18n={i18n} /> diff --git a/govtool/frontend/src/types/@intersect.mbo.d.ts b/govtool/frontend/src/types/@intersect.mbo.d.ts index 4981c67fa..140fcd55b 100644 --- a/govtool/frontend/src/types/@intersect.mbo.d.ts +++ b/govtool/frontend/src/types/@intersect.mbo.d.ts @@ -40,6 +40,8 @@ declare module "@intersect.mbo/pdf-ui/cjs" { ipfsGateway?: string; // eslint-disable-next-line @typescript-eslint/no-explicit-any walletAPI?: any; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + i18n?: any; }; export default function ProposalDiscussion(