1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-24 12:23:39 +02:00
metamask-extension/ui/app/pages/settings/advanced-tab
Brad Decker 2f50e9fd72
Restore timing function (#8774)
* restore and enhance the time est feature

background: we had a feature for showing a time estimate on pending txs
that was accidently removed during the redesign implementation. This PR
restores that feature and also enhances it:
1. Displays the time estimate on all views instead of just fullscreen
2. Uses Intl.RelativeTimeFormat to format the time
3. Adds a way to toggle the feature flag.
4. Uses a hook to calculate the time remaining instead of a component

* Update app/_locales/en/messages.json

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* do not display on test nets

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-06-12 13:46:01 -05:00
..
tests Restore timing function (#8774) 2020-06-12 13:46:01 -05:00
advanced-tab.component.js Restore timing function (#8774) 2020-06-12 13:46:01 -05:00
advanced-tab.container.js Restore timing function (#8774) 2020-06-12 13:46:01 -05:00
index.js New settings page rebased (#6333) 2019-03-25 13:43:23 -02:30