1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/ui/app/hooks
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 Show fiat amounts inline on token transfers (#8786) 2020-06-12 14:37:06 -03:00
useCancelTransaction.js
useCurrencyDisplay.js
useI18nContext.js
useMethodData.js
useMetricEvent.js Adds the rule of hooks eslint rule (#8779) 2020-06-10 13:31:14 -05:00
useRetryTransaction.js fix crash on signature request (#8709) 2020-06-01 12:27:51 -05:00
useShouldShowSpeedUp.js Adds the rule of hooks eslint rule (#8779) 2020-06-10 13:31:14 -05:00
useTokenData.js
useTokenDisplayValue.js
useTokenFiatAmount.js Show fiat amounts inline on token transfers (#8786) 2020-06-12 14:37:06 -03:00
useTokenTracker.js Adds the rule of hooks eslint rule (#8779) 2020-06-10 13:31:14 -05:00
useTransactionDisplayData.js Show fiat amounts inline on token transfers (#8786) 2020-06-12 14:37:06 -03:00
useTransactionTimeRemaining.js Restore timing function (#8774) 2020-06-12 13:46:01 -05:00
useUserPreferencedCurrency.js