From e129035d00db56eaa11458cd7cd4a8d360678546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Sworze=C5=84?= Date: Wed, 12 Jun 2024 11:23:54 +0200 Subject: [PATCH] change about to abstract --- .../organisms/DashboardGovernanceActionDetails.tsx | 2 +- .../organisms/GovernanceActionDetailsCard.tsx | 6 +++--- .../organisms/GovernanceActionDetailsCardData.tsx | 10 +++++----- govtool/frontend/src/i18n/locales/en.ts | 2 +- govtool/frontend/src/pages/GovernanceActionDetails.tsx | 2 +- .../src/stories/GovernanceActionDetailsCard.stories.ts | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/govtool/frontend/src/components/organisms/DashboardGovernanceActionDetails.tsx b/govtool/frontend/src/components/organisms/DashboardGovernanceActionDetails.tsx index 6b4332f9a..69d0ea764 100644 --- a/govtool/frontend/src/components/organisms/DashboardGovernanceActionDetails.tsx +++ b/govtool/frontend/src/components/organisms/DashboardGovernanceActionDetails.tsx @@ -137,7 +137,7 @@ export const DashboardGovernanceActionDetails = () => { url={state ? state.url : data.proposal.url} title={title} links={state ? state?.references : data.proposal?.references} - about={state ? state?.abstract : data.proposal?.abstract} + abstract={state ? state?.abstract : data.proposal?.abstract} motivation={state ? state?.motivation : data.proposal?.motivation} rationale={state ? state?.rationale : data.proposal?.rationale} yesVotes={state ? state.yesVotes : data.proposal.yesVotes} diff --git a/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx b/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx index ba6311519..32da05638 100644 --- a/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx +++ b/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx @@ -20,7 +20,7 @@ type GovernanceActionDetailsCardProps = { details?: ActionDetailsType; url: string; title?: string; - about?: string; + abstract?: string; motivation?: string; rationale?: string; yesVotes: number; @@ -48,7 +48,7 @@ export const GovernanceActionDetailsCard = ({ url, title, links, - about, + abstract, motivation, rationale, yesVotes, @@ -93,7 +93,7 @@ export const GovernanceActionDetailsCard = ({ /> )} You voted {{vote}} on this proposal\non {{date}} (Epoch {{epoch}})", diff --git a/govtool/frontend/src/pages/GovernanceActionDetails.tsx b/govtool/frontend/src/pages/GovernanceActionDetails.tsx index 1abc674b9..ad1666baa 100644 --- a/govtool/frontend/src/pages/GovernanceActionDetails.tsx +++ b/govtool/frontend/src/pages/GovernanceActionDetails.tsx @@ -158,7 +158,7 @@ export const GovernanceActionDetails = () => { details={state ? state.details : data.proposal.details} url={state ? state.url : data.proposal.url} title={title} - about={state ? state?.abstract : data.proposal?.abstract} + abstract={state ? state?.abstract : data.proposal?.abstract} motivation={ state ? state?.motivation : data.proposal?.motivation } diff --git a/govtool/frontend/src/stories/GovernanceActionDetailsCard.stories.ts b/govtool/frontend/src/stories/GovernanceActionDetailsCard.stories.ts index 6ad71c7a8..5caf7f9cf 100644 --- a/govtool/frontend/src/stories/GovernanceActionDetailsCard.stories.ts +++ b/govtool/frontend/src/stories/GovernanceActionDetailsCard.stories.ts @@ -59,7 +59,7 @@ async function assertGovActionDetails( export const GovernanceActionDetailsCardComponent: Story = { args: { ...commonArgs, - about: "Example about section", + abstract: "Example about section", rationale: "Example rationale section", motivation: "Example motivation section", }, @@ -86,7 +86,7 @@ export const GovernanceActionDetailsDrep: Story = { ...commonArgs, isDashboard: true, isVoter: true, - about: "Example about section", + abstract: "Example about section", rationale: "Example rationale section", motivation: "Example motivation section", },