mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Dark mode: Updating error color and adding story (#14116)
* Updating error color and adding story * Fixing class * Updates * removing console log
This commit is contained in:
parent
28bcde5191
commit
656fd276c0
@ -21,7 +21,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: var(--color-warning-default);
|
color: var(--color-error-default);
|
||||||
margin-bottom: 9px;
|
margin-bottom: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ function QrCodeView(props) {
|
|||||||
) : (
|
) : (
|
||||||
header
|
header
|
||||||
)}
|
)}
|
||||||
{warning ? <span className="qr_code__error">{warning}</span> : null}
|
{warning ? <span className="qr-code__error">{warning}</span> : null}
|
||||||
<div
|
<div
|
||||||
className="qr-code__wrapper"
|
className="qr-code__wrapper"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
|
22
ui/components/ui/qr-code/qr-code.stories.js
Normal file
22
ui/components/ui/qr-code/qr-code.stories.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import QrCodeView from '.';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'Components/UI/QrCodeView',
|
||||||
|
id: __filename,
|
||||||
|
argTypes: {
|
||||||
|
Qr: {
|
||||||
|
control: 'object',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
args: {
|
||||||
|
Qr: {
|
||||||
|
message: <div>message</div>,
|
||||||
|
data: 'data',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const DefaultStory = (args) => <QrCodeView {...args} />;
|
||||||
|
|
||||||
|
DefaultStory.storyName = 'Default';
|
Loading…
x
Reference in New Issue
Block a user