mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +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;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: var(--color-warning-default);
|
||||
color: var(--color-error-default);
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ function QrCodeView(props) {
|
||||
) : (
|
||||
header
|
||||
)}
|
||||
{warning ? <span className="qr_code__error">{warning}</span> : null}
|
||||
{warning ? <span className="qr-code__error">{warning}</span> : null}
|
||||
<div
|
||||
className="qr-code__wrapper"
|
||||
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…
Reference in New Issue
Block a user