Remove ParityBackground (#5501)
This commit is contained in:
parent
b749718feb
commit
ac138f6a4c
@ -44,16 +44,6 @@ $popoverZ: 3600;
|
|||||||
z-index: $modalBackZ;
|
z-index: $modalBackZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parityBackground {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
opacity: 0.25;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overlay {
|
.overlay {
|
||||||
background-color: rgba(0, 0, 0, 1);
|
background-color: rgba(0, 0, 0, 1);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -22,7 +22,6 @@ import { noop } from 'lodash';
|
|||||||
|
|
||||||
import { nodeOrStringProptype } from '~/util/proptypes';
|
import { nodeOrStringProptype } from '~/util/proptypes';
|
||||||
import { CloseIcon } from '~/ui/Icons';
|
import { CloseIcon } from '~/ui/Icons';
|
||||||
import ParityBackground from '~/ui/ParityBackground';
|
|
||||||
import StackEventListener from '~/ui/StackEventListener';
|
import StackEventListener from '~/ui/StackEventListener';
|
||||||
import Title from '~/ui/Title';
|
import Title from '~/ui/Title';
|
||||||
|
|
||||||
@ -99,7 +98,6 @@ export default class Portal extends Component {
|
|||||||
onKeyDown={ this.handleKeyDown }
|
onKeyDown={ this.handleKeyDown }
|
||||||
>
|
>
|
||||||
<StackEventListener onKeyUp={ this.handleKeyUp } />
|
<StackEventListener onKeyUp={ this.handleKeyUp } />
|
||||||
<ParityBackground className={ styles.parityBackground } />
|
|
||||||
{ this.renderClose() }
|
{ this.renderClose() }
|
||||||
<Title
|
<Title
|
||||||
activeStep={ activeStep }
|
activeStep={ activeStep }
|
||||||
|
@ -44,7 +44,6 @@ export { Busy as BusyStep, Completed as CompletedStep } from './Modal';
|
|||||||
export ModalBox from './ModalBox';
|
export ModalBox from './ModalBox';
|
||||||
export muiTheme from './Theme';
|
export muiTheme from './Theme';
|
||||||
export Page from './Page';
|
export Page from './Page';
|
||||||
export ParityBackground from './ParityBackground';
|
|
||||||
export Portal from './Portal';
|
export Portal from './Portal';
|
||||||
export QrCode from './QrCode';
|
export QrCode from './QrCode';
|
||||||
export QrScan from './QrScan';
|
export QrScan from './QrScan';
|
||||||
|
@ -123,7 +123,7 @@ $modalZ: 10001;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cornercolor {
|
.cornercolor {
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.75);
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -24,7 +24,7 @@ import { connect } from 'react-redux';
|
|||||||
import store from 'store';
|
import store from 'store';
|
||||||
|
|
||||||
import imagesEthcoreBlock from '~/../assets/images/parity-logo-white-no-text.svg';
|
import imagesEthcoreBlock from '~/../assets/images/parity-logo-white-no-text.svg';
|
||||||
import { AccountCard, Badge, Button, ContainerTitle, IdentityIcon, ParityBackground, SelectionList } from '~/ui';
|
import { AccountCard, Badge, Button, ContainerTitle, IdentityIcon, SelectionList } from '~/ui';
|
||||||
import { CancelIcon, FingerprintIcon } from '~/ui/Icons';
|
import { CancelIcon, FingerprintIcon } from '~/ui/Icons';
|
||||||
import DappsStore from '~/views/Dapps/dappsStore';
|
import DappsStore from '~/views/Dapps/dappsStore';
|
||||||
import Signer from '~/views/Signer/Embedded';
|
import Signer from '~/views/Signer/Embedded';
|
||||||
@ -191,7 +191,7 @@ class ParityBar extends Component {
|
|||||||
onMouseUp={ this.onMouseUp }
|
onMouseUp={ this.onMouseUp }
|
||||||
ref={ this.onRef }
|
ref={ this.onRef }
|
||||||
>
|
>
|
||||||
<ParityBackground
|
<div
|
||||||
className={ parityBgClassNames.join(' ') }
|
className={ parityBgClassNames.join(' ') }
|
||||||
ref='container'
|
ref='container'
|
||||||
style={ parityBgStyle }
|
style={ parityBgStyle }
|
||||||
@ -201,7 +201,7 @@ class ParityBar extends Component {
|
|||||||
? this.renderExpanded()
|
? this.renderExpanded()
|
||||||
: this.renderBar()
|
: this.renderBar()
|
||||||
}
|
}
|
||||||
</ParityBackground>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -68,10 +68,6 @@ describe('views/ParityBar', () => {
|
|||||||
expect(component).to.be.ok;
|
expect(component).to.be.ok;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('includes the ParityBackground', () => {
|
|
||||||
expect(component.find('Connect(ParityBackground)')).to.have.length(1);
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('renderBar', () => {
|
describe('renderBar', () => {
|
||||||
let bar;
|
let bar;
|
||||||
|
|
||||||
|
@ -19,7 +19,8 @@ import { FormattedMessage } from 'react-intl';
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
|
|
||||||
import { Button, Container, ParityBackground } from '~/ui';
|
import { Button, Container } from '~/ui';
|
||||||
|
import ParityBackground from '~/ui/ParityBackground';
|
||||||
import { RefreshIcon } from '~/ui/Icons';
|
import { RefreshIcon } from '~/ui/Icons';
|
||||||
|
|
||||||
import { updateBackground } from '~/redux/providers/settings/actions';
|
import { updateBackground } from '~/redux/providers/settings/actions';
|
||||||
|
Loading…
Reference in New Issue
Block a user