mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-22 15:58:31 +00:00
* Check offline status immediately. * If they start the page offline, show a less severe error message. * Get rid of offline aware header. Disable wallet options when offline. * Add online indicator to the header. * Prevent some components from render, some requests from firing when offline. * Allow for array of elements with typing. * Dont show dollars in fee summary when offline. * Fix up saga tests. * Fix sidebar component offline styles. * Remove force offline. * Dont request rates if offline. * Nonce in advanced, show even of online. * Show invalid advanced props. * Fix up offline poll tests.
34 lines
876 B
TypeScript
34 lines
876 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 isUnavailableOffline={true}>
|
|
<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;
|