From b86dae7ede1f27e0027eb6c88ff68065d68e6f10 Mon Sep 17 00:00:00 2001 From: apanizo Date: Wed, 7 Nov 2018 12:01:34 +0100 Subject: [PATCH] Refactor Header Provider Info & Details --- .../Header/component/Layout.stories.js | 16 ++++++++-------- .../ConnectDetails.jsx | 0 .../UserDetails.jsx | 0 .../{index.jsx => ProviderAccesible.jsx} | 0 .../ProviderDisconnected.jsx} | 0 src/components/Header/index.jsx | 12 ++++++------ 6 files changed, 14 insertions(+), 14 deletions(-) rename src/components/Header/component/{ProviderDisconnected => ProviderDetails}/ConnectDetails.jsx (100%) rename src/components/Header/component/{ProviderInfo => ProviderDetails}/UserDetails.jsx (100%) rename src/components/Header/component/ProviderInfo/{index.jsx => ProviderAccesible.jsx} (100%) rename src/components/Header/component/{ProviderDisconnected/index.jsx => ProviderInfo/ProviderDisconnected.jsx} (100%) diff --git a/src/components/Header/component/Layout.stories.js b/src/components/Header/component/Layout.stories.js index 354ee223..01111749 100644 --- a/src/components/Header/component/Layout.stories.js +++ b/src/components/Header/component/Layout.stories.js @@ -3,10 +3,10 @@ import { storiesOf } from '@storybook/react' import * as React from 'react' import styles from '~/components/layout/PageFrame/index.scss' import Layout from './Layout' -import ProviderInfo from './ProviderInfo' -import ProviderDetails from './ProviderInfo/UserDetails' -import ProviderDisconnected from './ProviderDisconnected' -import ConnectDetails from './ProviderDisconnected/ConnectDetails' +import ProviderAccesible from './ProviderInfo/ProviderAccesible' +import UserDetails from './ProviderDetails/UserDetails' +import ProviderDisconnected from './ProviderInfo/ProviderDisconnected' +import ConnectDetails from './ProviderDetails/ConnectDetails' const FrameDecorator = story => (
@@ -20,8 +20,8 @@ storiesOf('Components /Header', module) const provider = 'Metamask' const userAddress = '0x873faa4cddd5b157e8e5a57e7a5479afc5d30moe' const network = 'RINKEBY' - const info = - const details = + const info = + const details = return }) @@ -35,8 +35,8 @@ storiesOf('Components /Header', module) const provider = 'Metamask' const userAddress = '0x873faa4cddd5b157e8e5a57e7a5479afc5d30moe' const network = 'RINKEBY' - const info = - const details = ( + const details = ( { return } - return + return } getProviderDetailsBased = () => { @@ -67,7 +67,7 @@ class HeaderComponent extends React.PureComponent { return } - return (