From 8ae0aec302fd7aba5db2115f075f329dcac5a013 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Thu, 14 Sep 2023 12:18:26 +0300 Subject: [PATCH] Add status calendar and style --- .../Dashboard/BalanceLineChart/BalanceChardCard.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx b/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx index d877458d..217fe146 100644 --- a/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx +++ b/src/pages/Dashboard/BalanceLineChart/BalanceChardCard.tsx @@ -4,8 +4,11 @@ import { Text } from "@status-im/components"; import LineChart from "./LineChart"; import Icon from "../../../components/General/Icon"; - +import { Calendar } from '@status-im/components' +import { useState } from "react"; const BalanceChardCard = () => { + const [isCalendarVisible, setIsCalendarVisible] = useState(false) + let calendarStyle = { backgroundColor: 'white' } return ( @@ -14,16 +17,17 @@ const BalanceChardCard = () => { Balance - + setIsCalendarVisible(true)}> 24,273 1.56% - + setIsCalendarVisible((prev) => !prev)} style={{ border: '2px solid #09101C14', height: 'fit-content', padding: '3px', borderRadius: '10px' }}> 01 APR 2022 → 31 MAR 2023 - + + {isCalendarVisible && }