Skip to content

Commit 18e1726

Browse files
authored
Merge pull request #3432 from emmanuel-musau/chore/support-outcomes-i18n
chore: pass i18n instance to the outcomes pillar
2 parents d28ccc0 + c74e217 commit 18e1726

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

govtool/frontend/src/pages/GovernanceActionOutComes.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Box, CircularProgress } from "@mui/material";
22
import React, { Suspense } from "react";
33
import { Footer, TopNav } from "@/components/organisms";
44
import { useCardano } from "@/context";
5-
import { useScreenDimension } from "@/hooks";
5+
import { useScreenDimension, useTranslation } from "@/hooks";
66
import { Background } from "@/components/atoms";
77

88
const GovernanceActionsOutcomes = React.lazy(
@@ -12,6 +12,8 @@ const GovernanceActionsOutcomes = React.lazy(
1212
export const GovernanceActionOutComesPillar = () => {
1313
const { pagePadding } = useScreenDimension();
1414
const { walletApi, ...context } = useCardano();
15+
const { i18n } = useTranslation();
16+
1517
return (
1618
<Background>
1719
<Box
@@ -49,6 +51,7 @@ export const GovernanceActionOutComesPillar = () => {
4951
apiUrl={import.meta.env.VITE_OUTCOMES_API_URL}
5052
ipfsGateway={import.meta.env.VITE_IPFS_GATEWAY}
5153
walletAPI={{ ...context, ...walletApi }}
54+
i18n={i18n}
5255
/>
5356
</Suspense>
5457
</Box>

govtool/frontend/src/types/@intersect.mbo.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ declare module "@intersect.mbo/pdf-ui/cjs" {
4040
ipfsGateway?: string;
4141
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4242
walletAPI?: any;
43+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
44+
i18n?: any;
4345
};
4446

4547
export default function ProposalDiscussion(

0 commit comments

Comments
 (0)