1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 21:00:13 +01:00
metamask-extension/ui/pages/swaps/countdown-timer
Daniel fc17fbe1ad
Swaps timer improvements, optional refresh rates and fix for a notification UI (#14300)
* Set up correct timer value for fetching new quotes

* Show red timer in Swaps if quotes fetching will happen in less than 10s (previously it was 30s)

* Fix a UI issue with the notification close button

* Make stx refresh rates optional, since not every network supports them
2022-04-04 15:14:50 +02:00
..
__snapshots__
countdown-timer.js
countdown-timer.stories.js
countdown-timer.test.js
index.js
index.scss
README.mdx
timer-icon.js
timer-icon.test.js

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import CountdownTimer from '.';

# CountdownTimer

A CountdownTimer displays a timer that ticks down, communicating to the user the time left to perform some aciton.

<Canvas>
  <Story id="ui-pages-swaps-countdown-timer-countdown-timer-stories-js--default-story" />
</Canvas>

## Component API

<ArgsTable of={CountdownTimer} />