From 273eae613e70c0d5c5658406494ff2c57f493451 Mon Sep 17 00:00:00 2001 From: Nathan Richards Date: Wed, 10 Jul 2024 13:33:58 +0200 Subject: [PATCH] fix: import for common js lib react-timer-hook --- packages/widget/src/components/Step/StepTimer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/widget/src/components/Step/StepTimer.tsx b/packages/widget/src/components/Step/StepTimer.tsx index 31a48bdff..de0818673 100644 --- a/packages/widget/src/components/Step/StepTimer.tsx +++ b/packages/widget/src/components/Step/StepTimer.tsx @@ -1,8 +1,8 @@ import type { LiFiStepExtended } from '@lifi/sdk'; import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import pkg from 'react-timer-hook'; -const { useTimer } = pkg; +import * as reactTimerHook from 'react-timer-hook'; +const { useTimer } = reactTimerHook; const getExpiryTimestamp = (step: LiFiStepExtended) => new Date(