1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 21:57:06 +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__ Dark Mode: Swap hex colors in ui/pages (#14214) 2022-03-25 15:15:31 -07:00
countdown-timer.js Swaps timer improvements, optional refresh rates and fix for a notification UI (#14300) 2022-04-04 15:14:50 +02:00
countdown-timer.stories.js Convert knobs and actions to controls/args for CountdownTimer (#14222) 2022-03-31 13:31:31 -05:00
countdown-timer.test.js Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss Dark Mode: Replace color occurences (#14112) 2022-03-23 16:43:53 +01:00
README.mdx Convert knobs and actions to controls/args for CountdownTimer (#14222) 2022-03-31 13:31:31 -05:00
timer-icon.js Dark Mode: Swap hex colors in ui/pages (#14214) 2022-03-25 15:15:31 -07:00
timer-icon.test.js Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30

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} />