1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Fix/14303 show private keys (#14314)

This commit is contained in:
George Marshall 2022-04-01 06:59:46 -07:00 committed by ryanml
parent 94378c773d
commit a499d0f045
6 changed files with 43 additions and 5 deletions

View File

@ -0,0 +1,37 @@
import React from 'react';
import ExportPrivateKeyModal from '.';
export default {
title: 'Components/App/Modals/ExportPrivateKeyModal',
id: __filename,
argTypes: {
exportAccount: {
action: 'exportAccount',
},
selectedIdentity: {
control: 'object',
},
warning: {
control: 'node',
},
showAccountDetailModal: {
action: 'showAccountDetailModal',
},
hideModal: {
action: 'hideModal',
},
hideWarning: {
action: 'hideWarning',
},
clearAccountDetails: {
action: 'clearAccountDetails',
},
previousModalState: {
control: 'text',
},
},
};
export const DefaultStory = (args) => <ExportPrivateKeyModal {...args} />;
DefaultStory.storyName = 'Default';

View File

@ -28,7 +28,7 @@
&__password--error {
@include H6;
color: var(--color-text-muted);
color: var(--color-text-default);
margin-bottom: 10px;
}
@ -76,6 +76,7 @@
@include Paragraph;
color: var(--color-error-default);
background-color: var(--color-background-default);
border: none;
height: 75px;
width: 100%;

View File

@ -251,7 +251,7 @@ export default class QrScanner extends Component {
}}
/>
{ready === READY_STATE.READY ? null : (
<Spinner color="var(--color-secondary-muted)" />
<Spinner color="var(--color-secondary-default)" />
)}
</div>
</div>

View File

@ -55,7 +55,7 @@ const EnhancedReader = ({ handleScan }) => {
filter: 'blur(4px)',
}}
/>
{canplay ? null : <Spinner color="var(--color-secondary-muted)" />}
{canplay ? null : <Spinner color="var(--color-secondary-default)" />}
</div>
);
};

View File

@ -202,7 +202,7 @@ export default function TransactionDecoding({ to = '', inputData: data = '' }) {
if (loading) {
return (
<div className="tx-insight-loading">
<Spinner color="var(--color-secondary-muted)" />
<Spinner color="var(--color-secondary-default)" />
</div>
);
}

View File

@ -35,7 +35,7 @@ class LoadingScreen extends Component {
<div className="loading-overlay__container">
{this.props.showLoadingSpinner && (
<Spinner
color="var(--color-secondary-muted)"
color="var(--color-secondary-default)"
className="loading-overlay__spinner"
/>
)}