1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/components/app/transaction-total-banner/transaction-total-banner.stories.js
Etienne Dusseault 5a14a1a54a
Add storybook render tests with CI integration (#12477)
* add storybook unit tests with CI integration

* fix command and fix casing for test

* change ci ordering for storybook tasks

* fix syntax error

* fix jest

* lint

* Add transaction-total-banner render test to Storybook (#12517)

* transaction-total-banner

* lint

* confirm to spec

* lint

* fix jest ocnfig for snapshot test failure
2021-11-23 16:41:30 -08:00

24 lines
435 B
JavaScript

import React from 'react';
import TransactionTotalBanner from '.';
export default {
title: 'Transaction Total Banner',
id: __filename,
};
export const DefaultStory = () => {
return (
<TransactionTotalBanner
total="~18.73"
detail={
<>
Up to <strong>$19.81</strong> (0.01234 ETH)
</>
}
timing="Very likely in < 15 seconds"
/>
);
};
DefaultStory.storyName = 'Default';