From e695fb901a265eeaf937fa1f15793bfb221ebcba Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Fri, 15 Sep 2023 10:31:02 +0300 Subject: [PATCH] fix: fix style of calendar position --- .../BalanceLineChart/BalanceChardCard.tsx | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx b/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx index bc73b4dd..563b7a6f 100644 --- a/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx +++ b/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx @@ -10,12 +10,10 @@ import { useState } from "react"; const years = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEPT', 'OCT', 'NOV', 'DEC'] - const userGains = [10000, 15000, 17500, 20000, 19000, 23222, 25000, 20000, 20000, 21000, 22300, 21000] const BalanceChardCard = () => { const [isCalendarVisible, setIsCalendarVisible] = useState(false) - const calendarStyle = { backgroundColor: 'white', width: 'fit-content' } const [dateRange, setDateRange] = useState({ from: undefined, to: undefined }); @@ -29,11 +27,11 @@ const BalanceChardCard = () => { } setDateRange(range); }; + return ( - - + Balance @@ -47,17 +45,17 @@ const BalanceChardCard = () => { {dateRange?.to ? dateRange.to.toLocaleDateString() : ' End Date'} - {isCalendarVisible && ( - - )} + {isCalendarVisible && ( + + )}