mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
5a14a1a54a
* 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
24 lines
435 B
JavaScript
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';
|