Skip to content

Commit 701c166

Browse files
authored
Merge pull request #3478 from IntersectMBO/feat/add-snackbar-to-pdf
feat: add snackbar to pdf
2 parents 3481070 + 8f58d0c commit 701c166

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@ changes.
1010

1111
## [Unreleased]
1212

13-
### Added
14-
15-
### Fixed
16-
17-
### Changed
18-
19-
### Removed
20-
21-
## [v2.0.20](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.20) 2025-04-15
22-
23-
2413
### Added
2514

2615
- Add Proposal discussion context that manages username [Issue 3341](https://github.com/IntersectMBO/govtool/issues/3341)
2716
- Add epochParams and ada holder balance to Proposal Discussion Pillar [Issue 2243](https://github.com/IntersectMBO/govtool/issues/2243)
2817
- Add skeleton element to the drep and governance action cards on validation [Issue 3247](https://github.com/IntersectMBO/govtool/issues/3247)
2918
- Add mock for the authors field in governance metadata [Issue 3307](https://github.com/IntersectMBO/govtool/issues/3307)
30-
3119
- Add uncontrolled image input to improve performance of large base64 encoded image strings
20+
- Add snackbar to pdf
3221

3322
### Fixed
3423

govtool/frontend/src/pages/ProposalDiscussion.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
useCardano,
77
useGovernanceActions,
88
useProposalDiscussion,
9+
useSnackbar,
910
} from "@/context";
1011
import { useValidateMutation } from "@/hooks/mutations";
1112
import { useScreenDimension } from "@/hooks/useScreenDimension";
@@ -30,6 +31,7 @@ export const ProposalDiscussionPillar = () => {
3031
const { fetchDRepVotingPowerList } = useGetDRepVotingPowerList();
3132
const { username, setUsername } = useProposalDiscussion();
3233
const { votingPower } = useGetAdaHolderVotingPowerQuery(context.stakeKey);
34+
const snackbarContext = useSnackbar();
3335

3436
return (
3537
<Box
@@ -83,6 +85,7 @@ export const ProposalDiscussionPillar = () => {
8385
setUsername={setUsername}
8486
epochParams={epochParams}
8587
votingPower={votingPower}
88+
{...snackbarContext}
8689
/>
8790
</Suspense>
8891
</Box>

0 commit comments

Comments
 (0)