1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 06:07:06 +01:00
metamask-extension/ui/pages/swaps/fee-card
Jurriaan Den Toonder 1521e63913
Change over FeeCard stories to use controls instead of knobs, update props in stories (#13766)
This PR changes over the deprecated knobs and actions in `fee-card.stories.js` to controls.
I attempted to create a `README.mdx`, but unfortunately the `<ArgsTable of={FeeCard} />` refused to render out any of the documentation comments I added to the `FeeCard.propTypes`, thus that has not been included (and no documentation has been added to the propTypes of FeeCard).

_Please note:_ currently nested arg types are not possible in StoryBook, but discussions are open: https://github.com/storybookjs/storybook/issues/11486. This means that the StoryBook shows `primaryFee`, `primaryMaxFee`, `secondaryFee` and `secondaryMaxFee`, but these are mapped to the 2 `primaryFee` and `secondaryFee` props of the component. This is visible if the developer clicks on the `Show code` button at the docs page in StoryBook.

Signed-off-by: Jurriaan Den Toonder <1493561+Fastjur@users.noreply.github.com>
2022-03-29 16:13:00 -06:00
..
__snapshots__ Using EIP-1559 V2 for swaps (#12966) 2021-12-12 04:56:28 +05:30
fee-card.js Remove usages of useNewMetricEvent hook (#13955) 2022-03-25 08:21:29 -05:00
fee-card.stories.js Change over FeeCard stories to use controls instead of knobs, update props in stories (#13766) 2022-03-29 16:13:00 -06:00
fee-card.test.js Add support for Smart Transactions (#12676) 2022-02-18 17:48:38 +01:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss Dark mode: Updating all left over static hex values in scss (#14167) 2022-03-24 19:08:08 +01:00
pig-icon.js Dark Mode: Swap hex colors in ui/pages (#14214) 2022-03-25 15:15:31 -07:00
pig-icon.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00