diff --git a/packages/page-explorer/src/index.tsx b/packages/page-explorer/src/index.tsx index 283ad205f1..a7acd6ef5d 100644 --- a/packages/page-explorer/src/index.tsx +++ b/packages/page-explorer/src/index.tsx @@ -7,7 +7,6 @@ import React, { useContext, useRef } from 'react'; import { Route, Switch } from 'react-router'; import Tabs from '@polkadot/react-components/Tabs'; -import { useApi } from '@polkadot/react-hooks'; import { BlockAuthorsContext, EventsContext } from '@polkadot/react-query'; import BlockInfo from './BlockInfo'; @@ -22,11 +21,8 @@ interface Props { newEvents?: KeyedEvent[]; } -const HIDDESN_NOBABE = ['forks']; - function ExplorerApp ({ basePath, className }: Props): React.ReactElement { const { t } = useTranslation(); - const { api } = useApi(); const { lastHeaders } = useContext(BlockAuthorsContext); const events = useContext(EventsContext); @@ -55,7 +51,6 @@ function ExplorerApp ({ basePath, className }: Props): React.ReactElement