mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-22 08:58:55 +00:00
6f7e3c27e2
* Fix location query * Remove unnecessary polyfill * Fix tslint error & update history types * Parse search str using Node Query String * Revert "Parse search str using Node Query String" This reverts commit 0a482dabf29c3fbcbfd3112b974d6b98c14dca2e. * fix formatting * Add query-string * Rename App container to TabSection & pass it location prop * Add react-router withRouter HOC to NavigationLink * various adjustments/finalizations * Add location to props interface
34 lines
848 B
TypeScript
34 lines
848 B
TypeScript
import React from 'react';
|
|
import { GeneralInfoPanel } from './GeneralInfoPanel';
|
|
import Title from './Title';
|
|
import UnfinishedBanner from './UnfinishedBanner';
|
|
import TabSection from 'containers/TabSection';
|
|
|
|
interface ContainerTabPaneActiveProps {
|
|
children: React.ReactElement<any> | React.ReactElement<any>[];
|
|
}
|
|
|
|
const ContainerTabPaneActive = ({ children }: ContainerTabPaneActiveProps) => (
|
|
<TabSection>
|
|
<section className="container">
|
|
<div className="tab-content">
|
|
<main className="tab-pane active">
|
|
<section role="main" className="row">
|
|
{children}
|
|
</section>
|
|
</main>
|
|
</div>
|
|
</section>
|
|
</TabSection>
|
|
);
|
|
|
|
const ENS = () => (
|
|
<ContainerTabPaneActive>
|
|
<UnfinishedBanner />
|
|
<Title />
|
|
<GeneralInfoPanel />
|
|
</ContainerTabPaneActive>
|
|
);
|
|
|
|
export default ENS;
|