From e5153b2730bb322e85a277f70c24bf81db37c9bb Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 31 Mar 2024 04:32:11 +0100 Subject: [PATCH] add isValidating behavior --- .../CalculationBaseOutput/CalculationBase.tsx | 2 +- components/FormAmount/FormAmount.tsx | 2 +- components/FormAmount/Inputs/InputToken.tsx | 2 +- components/FormAmount/types.ts | 2 +- components/ResultRow/ResultRow.module.css | 16 +++++++++++ components/ResultRow/ResultRow.tsx | 16 ++++++++--- components/Strategies/Buy.tsx | 5 +++- components/Strategies/Swap.tsx | 27 ++++++++++++------- components/Strategies/styles.module.css | 15 ++--------- hooks/use-prices.tsx | 15 ++++++----- 10 files changed, 66 insertions(+), 36 deletions(-) diff --git a/components/CalculationBaseOutput/CalculationBase.tsx b/components/CalculationBaseOutput/CalculationBase.tsx index 0e84a47..a781188 100644 --- a/components/CalculationBaseOutput/CalculationBase.tsx +++ b/components/CalculationBaseOutput/CalculationBase.tsx @@ -5,7 +5,7 @@ import styles from './CalculationBase.module.css' import { usePrices } from '@/hooks' export function CalculationBase() { - const prices = usePrices() + const { prices } = usePrices() return (