From e97ce8b9267fe96a39d037a14a311d5b69d9e524 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 11 Feb 2020 16:19:28 +0100 Subject: [PATCH] Display council members, runners-up & candidates on one screen (#2267) * Display council members, runnersup & candidates on one screen * Remove location check --- packages/app-council/src/Overview/index.tsx | 26 +++++++-------------- packages/app-council/src/index.tsx | 4 ---- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/packages/app-council/src/Overview/index.tsx b/packages/app-council/src/Overview/index.tsx index 4151733767..14f4aaba15 100644 --- a/packages/app-council/src/Overview/index.tsx +++ b/packages/app-council/src/Overview/index.tsx @@ -6,7 +6,6 @@ import { DerivedElectionsInfo } from '@polkadot/api-derive/types'; import { AccountId, BlockNumber } from '@polkadot/types/interfaces'; import React from 'react'; -import { useLocation } from 'react-router-dom'; import { registry } from '@polkadot/react-api'; import { Button } from '@polkadot/react-components'; import { useApi, useCall } from '@polkadot/react-hooks'; @@ -51,32 +50,25 @@ export default function Overview ({ className }: Props): React.ReactElement - {pathname === '/council' && ( - <> - - - - - - - - )} + + + + + + diff --git a/packages/app-council/src/index.tsx b/packages/app-council/src/index.tsx index bb52af314d..3b11f51de4 100644 --- a/packages/app-council/src/index.tsx +++ b/packages/app-council/src/index.tsx @@ -33,10 +33,6 @@ function CouncilApp ({ basePath, className }: Props): React.ReactElement name: 'overview', text: t('Council overview') }, - { - name: 'candidates', - text: t('Candidates') - }, { name: 'motions', text: t('Motions ({{count}})', { replace: { count: numMotions } })