mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
1521e63913
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> |
||
---|---|---|
.. | ||
__snapshots__ | ||
awaiting-signatures | ||
awaiting-swap | ||
build-quote | ||
countdown-timer | ||
dropdown-input-pair | ||
dropdown-search-list | ||
exchange-rate-display | ||
fee-card | ||
import-token | ||
loading-swaps-quotes | ||
main-quote-summary | ||
searchable-item-list | ||
select-quote-popover | ||
slippage-buttons | ||
smart-transaction-status | ||
swaps-footer | ||
swaps-gas-customization-modal | ||
view-quote | ||
index.js | ||
index.scss | ||
index.test.js | ||
swaps-util-test-constants.js | ||
swaps.util.js | ||
swaps.util.test.js |