From 4c50494bd5569675b86a81eefbc41eeef57ab0c4 Mon Sep 17 00:00:00 2001 From: apanizo Date: Wed, 7 Nov 2018 10:43:30 +0100 Subject: [PATCH] Refactor Provider Details. Creating general component #72 --- .../ProviderDisconnected/ConnectDetails.jsx | 32 +-------- .../ProviderDisconnected/KeyRing.jsx | 71 +++++++++++++++++++ .../component/ProviderDisconnected/index.jsx | 32 +-------- 3 files changed, 77 insertions(+), 58 deletions(-) create mode 100644 src/components/Header/component/ProviderDisconnected/KeyRing.jsx diff --git a/src/components/Header/component/ProviderDisconnected/ConnectDetails.jsx b/src/components/Header/component/ProviderDisconnected/ConnectDetails.jsx index 0aca41c9..572005bd 100644 --- a/src/components/Header/component/ProviderDisconnected/ConnectDetails.jsx +++ b/src/components/Header/component/ProviderDisconnected/ConnectDetails.jsx @@ -3,13 +3,9 @@ import * as React from 'react' import { withStyles } from '@material-ui/core/styles' import Paragraph from '~/components/layout/Paragraph' import Button from '~/components/layout/Button' -import Dot from '@material-ui/icons/FiberManualRecord' -import Block from '~/components/layout/Block' -import Img from '~/components/layout/Img' import Row from '~/components/layout/Row' -import { md, lg, fancy } from '~/theme/variables' - -const connectedLogo = require('../../assets/key.svg') +import { md, lg } from '~/theme/variables' +import KeyRing from './KeyRing' type Props = { classes: Object, @@ -37,25 +33,6 @@ const styles = () => ({ img: { margin: '0px 2px', }, - status: { - height: '25px', - width: '25px', - borderRadius: '20px', - bottom: '93px', - position: 'absolute', - right: '98px', - backgroundColor: '#ffffff', - color: fancy, - }, - key: { - width: '75px', - height: '75px', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#e4e8f1', - borderRadius: '40px', - }, }) const ConnectDetails = ({ classes, onConnect }: Props) => ( @@ -66,10 +43,7 @@ const ConnectDetails = ({ classes, onConnect }: Props) => ( - - Status disconnected - - +