From 8f58d0ca96f7d14e3e516fdfc1e85100a413e75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Wed, 16 Apr 2025 08:57:15 +0200 Subject: [PATCH] feat: add snackbar to pdf --- CHANGELOG.md | 13 +------------ govtool/frontend/src/pages/ProposalDiscussion.tsx | 3 +++ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a3d240cb..2015932b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,25 +10,14 @@ changes. ## [Unreleased] -### Added - -### Fixed - -### Changed - -### Removed - -## [v2.0.20](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.20) 2025-04-15 - - ### Added - Add Proposal discussion context that manages username [Issue 3341](https://github.com/IntersectMBO/govtool/issues/3341) - Add epochParams and ada holder balance to Proposal Discussion Pillar [Issue 2243](https://github.com/IntersectMBO/govtool/issues/2243) - Add skeleton element to the drep and governance action cards on validation [Issue 3247](https://github.com/IntersectMBO/govtool/issues/3247) - Add mock for the authors field in governance metadata [Issue 3307](https://github.com/IntersectMBO/govtool/issues/3307) - - Add uncontrolled image input to improve performance of large base64 encoded image strings +- Add snackbar to pdf ### Fixed diff --git a/govtool/frontend/src/pages/ProposalDiscussion.tsx b/govtool/frontend/src/pages/ProposalDiscussion.tsx index b69836df9..396b6eee8 100644 --- a/govtool/frontend/src/pages/ProposalDiscussion.tsx +++ b/govtool/frontend/src/pages/ProposalDiscussion.tsx @@ -6,6 +6,7 @@ import { useCardano, useGovernanceActions, useProposalDiscussion, + useSnackbar, } from "@/context"; import { useValidateMutation } from "@/hooks/mutations"; import { useScreenDimension } from "@/hooks/useScreenDimension"; @@ -30,6 +31,7 @@ export const ProposalDiscussionPillar = () => { const { fetchDRepVotingPowerList } = useGetDRepVotingPowerList(); const { username, setUsername } = useProposalDiscussion(); const { votingPower } = useGetAdaHolderVotingPowerQuery(context.stakeKey); + const snackbarContext = useSnackbar(); return ( { setUsername={setUsername} epochParams={epochParams} votingPower={votingPower} + {...snackbarContext} />