Skip to content

Commit

Permalink
Creating story for account-mismatch-warning (#19460)
Browse files Browse the repository at this point in the history
* Creating story for account-mismatch-warning

* Removed line break

---------

Co-authored-by: George Marshall <george.marshall@consensys.net>
  • Loading branch information
dhruvv173 and georgewrmarshall authored Jun 7, 2023
1 parent a4f3a5f commit 29e6c2d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Tooltip from '../tooltip';
import { getSelectedAccount } from '../../../selectors';
import InfoIcon from '../icon/info-icon.component';
import { useI18nContext } from '../../../hooks/useI18nContext';
import { SEVERITIES } from '../../../helpers/constants/design-system';
import { Severity } from '../../../helpers/constants/design-system';

export default function AccountMismatchWarning({ address }) {
const selectedAccount = useSelector(getSelectedAccount);
Expand All @@ -25,7 +25,7 @@ export default function AccountMismatchWarning({ address }) {
className="account-mismatch-warning__tooltip-container-icon"
data-testid="account-mismatch-warning-tooltip"
>
<InfoIcon severity={SEVERITIES.WARNING} />
<InfoIcon severity={Severity.Warning} />
</div>
</Tooltip>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import AccountMismatchWarning from './account-mismatch-warning.component';

export default {
title: 'Components/UI/AccountMismatchWarning',
component: AccountMismatchWarning,
argTypes: {
address: {
control: 'text',
},
},
};

export const DefaultStory = (args) => <AccountMismatchWarning {...args} />;

DefaultStory.storyName = 'Default';
DefaultStory.args = {
address: '0x5CfE73b6021E818B776b421B1c4Db2474086a7e1',
};

0 comments on commit 29e6c2d

Please sign in to comment.