Skip to content

Commit

Permalink
fix(extension): fixing a test InfoActionContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
tommayeliog committed May 8, 2024
1 parent 6755b9f commit c3d42e8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const VotingProceduresContainer = (): React.ReactElement => {
</Box>
<VotingProcedures
data={votingProcedures.map((votingProcedure) =>
Wallet.util.mapVotingProceduresToView(votingProcedure, explorerBaseUrl)
Wallet.util.mapVotingProcedureToView(votingProcedure, explorerBaseUrl)
)}
/>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe('Testing ProposalProceduresContainer component', () => {
expect(mockInfoAction).toHaveBeenLastCalledWith(
{
data: {
txDetails: {},
procedure: {
anchor: {
url: anchor.url,
Expand Down
2 changes: 1 addition & 1 deletion packages/cardano/src/wallet/util/voter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type VotingProcedureView = {
}[];
};

export const mapVotingProceduresToView = (
export const mapVotingProcedureToView = (
votingProcedure: Cardano.VotingProcedures[number],
explorerBaseUrl: string
): VotingProcedureView => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const TxDetailsVotingProcedures = ({
<TxDetailsGroup title={t('core.activityDetails.votingProcedures')} testId="voting-procedures" withSeparatorLine>
<VotingProcedures
data={votingProcedures.map((votingProcedure) =>
Wallet.util.mapVotingProceduresToView(votingProcedure, explorerBaseUrl)
Wallet.util.mapVotingProcedureToView(votingProcedure, explorerBaseUrl)
)}
/>
</TxDetailsGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const ParameterChangeAction = ({
const { economicGroup, governanceGroup, networkGroup, technicalGroup, maxTxExUnits, maxBlockExUnits } =
protocolParamUpdate;

// TODO: consider encapsulating it inside the component itself, check if all the translations have the fallback to the parent int provider (LW-9920)

const translations: Types.Translations = {
txDetails: {
title: t('core.ProposalProcedure.txDetails.title'),
Expand Down

0 comments on commit c3d42e8

Please sign in to comment.