Skip to content

Commit

Permalink
Merge pull request #3210 from cardano-foundation/feat/MET-1963-drep-d…
Browse files Browse the repository at this point in the history
…etails-view

Feat/met 1963 drep details view
  • Loading branch information
Sotatek-TaiTruong committed Mar 28, 2024
2 parents bb4da94 + 1d85157 commit fbe37cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/components/GovernanceVotes/index.tsx
Expand Up @@ -207,8 +207,10 @@ const DelegationGovernanceVotes: React.FC<DelegationGovernanceVotesProps> = ({ h
size: Number(query.voteSize || 6),
page: query.page ? Number(query.page || 1) - 1 : 0,
total,
page: query.page ? Number(query.page || 1) - 1 : 0,
onChange: (page, size) => history.replace({ search: stringify({ ...query, page, voteSize: size }) })
}}
total={{ count: total || 0, title: "" }}
loading={false}
optionList={[6, 9, 12]}
/>
Expand Down Expand Up @@ -928,8 +930,8 @@ const FilterGovernanceVotes: React.FC<FilterGovernanceVotes> = ({ query, setQuer
const actionTypeListDrep = [
{ value: POOLS_ACTION_TYPE.ALL, text: t("pool.any") },
{ value: POOLS_ACTION_TYPE.NO_CONFIDENCE, text: t("pool.typeMotion") },
{ value: POOLS_ACTION_TYPE.UPDATE_COMMITTEE, text: t("pool.updateConstitution") },
{ value: POOLS_ACTION_TYPE.NEW_CONSTITUTION, text: t("drep.typeConstitutional") },
{ value: POOLS_ACTION_TYPE.UPDATE_COMMITTEE, text: t("drep.updateConstitution") },
{ value: POOLS_ACTION_TYPE.NEW_CONSTITUTION, text: t("pool.typeConstitutional") },
{ value: POOLS_ACTION_TYPE.HARD_FORK_INITIATION_ACTION, text: t("pool.typeHardFork") },
{ value: POOLS_ACTION_TYPE.PARAMETER_CHANGE_ACTION, text: t("drep.protocolChange") },
{ value: POOLS_ACTION_TYPE.TREASURY_WITHDRAWALS_ACTION, text: t("drep.treasuryWithdrawals") },
Expand All @@ -938,7 +940,7 @@ const FilterGovernanceVotes: React.FC<FilterGovernanceVotes> = ({ query, setQuer
const actionTypeListPools = [
{ value: POOLS_ACTION_TYPE.ALL, text: t("pool.any") },
{ value: POOLS_ACTION_TYPE.NO_CONFIDENCE, text: t("pool.typeMotion") },
{ value: POOLS_ACTION_TYPE.UPDATE_COMMITTEE, text: t("pool.updateConstitution") },
{ value: POOLS_ACTION_TYPE.UPDATE_COMMITTEE, text: t("drep.updateConstitution") },
{ value: POOLS_ACTION_TYPE.HARD_FORK_INITIATION_ACTION, text: t("pool.typeHardFork") },
{ value: POOLS_ACTION_TYPE.INFO_ACTION, text: t("pool.typeInfo") }
];
Expand Down
4 changes: 3 additions & 1 deletion src/pages/DrepDetail/index.tsx
Expand Up @@ -191,7 +191,9 @@ const DrepDetail = () => {
</TitleCard>
),
value: (
<ValueCard>{data?.votingParticipation !== null ? `${data?.votingParticipation}%` : t("common.N/A")}</ValueCard>
<ValueCard>
{data?.votingParticipation !== null ? `${formatPercent(data?.votingParticipation)}` : t("common.N/A")}
</ValueCard>
)
},
{
Expand Down

0 comments on commit fbe37cb

Please sign in to comment.