From e8972c8aba5c62e95a03269184d6b846be94157a Mon Sep 17 00:00:00 2001 From: MiZiet <55240109+MiZiet@users.noreply.github.com> Date: Tue, 2 Feb 2021 10:18:59 +0100 Subject: [PATCH] Bounties - Update summary (#4564) --- .../apps/public/locales/en/app-bounties.json | 6 ----- packages/page-bounties/src/Summary.tsx | 27 +++++++------------ 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/packages/apps/public/locales/en/app-bounties.json b/packages/apps/public/locales/en/app-bounties.json index fa186a5180..1b0b674788 100644 --- a/packages/apps/public/locales/en/app-bounties.json +++ b/packages/apps/public/locales/en/app-bounties.json @@ -93,14 +93,11 @@ "Unassign Curator": "Unassign Curator", "Unassign curator": "Unassign curator", "Unassign curator under voting": "Unassign curator under voting", - "Value": "Value", "You are giving up your curator role, the bounty will return to the Funded state. You will get your deposit back.": "You are giving up your curator role, the bounty will return to the Funded state. You will get your deposit back.", "active": "active", "award bounty": "award bounty", "award with account": "award with account", - "beneficiary": "beneficiary", "beneficiary account": "beneficiary account", - "bounties": "bounties", "bounty bond": "bounty bond", "bounty remark": "bounty remark", "bounty requested allocation": "bounty requested allocation", @@ -112,9 +109,7 @@ "current curator": "current curator", "next action": "next action", "next bounty funding in": "next bounty funding in", - "next burn": "next burn", "past": "past", - "payout due": "payout due", "propose with account": "propose with account", "proposing account": "proposing account", "reject curator": "reject curator", @@ -124,7 +119,6 @@ "submit with account": "submit with account", "title": "title", "treasury": "treasury", - "update due": "update due", "value": "value", "vote with account": "vote with account", "{{blocks}} blocks": "{{blocks}} blocks" diff --git a/packages/page-bounties/src/Summary.tsx b/packages/page-bounties/src/Summary.tsx index 7e7076fe7f..afd3f3d2f4 100644 --- a/packages/page-bounties/src/Summary.tsx +++ b/packages/page-bounties/src/Summary.tsx @@ -3,13 +3,14 @@ import React from 'react'; -import { useBounties } from '@polkadot/app-bounties/hooks'; -import { useTranslation } from '@polkadot/app-treasury/translate'; import { CardSummary, SummaryBox } from '@polkadot/react-components'; import Progress from '@polkadot/react-components/Progress'; import { useTreasury } from '@polkadot/react-hooks'; import { BlockToTime, FormatBalance } from '@polkadot/react-query'; +import { useBounties } from './hooks'; +import { useTranslation } from './translate'; + interface Props { activeBounties?: number; className?: string; @@ -19,7 +20,7 @@ function Summary ({ activeBounties, className = '' }: Props): React.ReactElement const { t } = useTranslation(); const { bestNumber, bountyIndex } = useBounties(); - const { burn, spendPeriod, value } = useTreasury(); + const { spendPeriod, value } = useTreasury(); return ( @@ -32,14 +33,6 @@ function Summary ({ activeBounties, className = '' }: Props): React.ReactElement {bountyIndex?.subn(activeBounties).toString()} )} - {bestNumber && spendPeriod.gtn(0) && ( - ('next bounty funding in')}> - - - )}
{value && ( @@ -50,13 +43,11 @@ function Summary ({ activeBounties, className = '' }: Props): React.ReactElement /> )} - {burn && ( - ('next burn')} - > - ('next bounty funding in')}> + )}