diff --git a/packages/apps/src/Content/index.tsx b/packages/apps/src/Content/index.tsx index 3de4bd228f..5ec77ad637 100644 --- a/packages/apps/src/Content/index.tsx +++ b/packages/apps/src/Content/index.tsx @@ -5,6 +5,7 @@ import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { QueueProps } from '@polkadot/ui-app/Status/types'; +import { RouteProps } from '../types'; import React from 'react'; import { withRouter } from 'react-router'; @@ -57,12 +58,17 @@ class Content extends React.Component { ); } + // inject router into component that we are rendering (in some cases react-router does + // not play 100% with styled-components because of the new vs old context usage, this + // is a workaround for that) + const ComponentRouted = (withRouter(Component as any) as any) as React.ComponentType; + return ( {({ queueAction, stqueue, txqueue }: QueueProps) => ( <> -