From e08fab7a80291ce02697da12154f01f67495dbbf Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Sat, 20 Apr 2024 16:59:33 +0300 Subject: [PATCH] fix(dashboard-card-wrapper): pass style instead of style props --- .../General/AddCards/AddCardsContainer.tsx | 2 +- .../ActiveValidators/ActiveValidators.tsx | 6 ++++- .../BalanceChartCard/BalanceChartCard.tsx | 4 +++- src/pages/Dashboard/CPULoad/CPUCard.tsx | 4 +--- .../ConnectedPeers/ConnectedPeers.tsx | 4 +++- src/pages/Dashboard/Dashboard.tsx | 2 +- src/pages/Dashboard/DashboardCardWrapper.tsx | 24 +++++-------------- .../Dashboard/DeviceUptime/DeviceUptime.tsx | 2 +- src/pages/Dashboard/MemoryCard/MemoryCard.tsx | 4 +--- .../Dashboard/NetworkCard/NetworkCard.tsx | 8 ++++--- .../Dashboard/StorageCard/StorageCard.tsx | 4 +--- .../SyncStatusCards/SyncStatusCards.tsx | 4 +++- 12 files changed, 31 insertions(+), 37 deletions(-) diff --git a/src/components/General/AddCards/AddCardsContainer.tsx b/src/components/General/AddCards/AddCardsContainer.tsx index e7d0468a..06c18639 100644 --- a/src/components/General/AddCards/AddCardsContainer.tsx +++ b/src/components/General/AddCards/AddCardsContainer.tsx @@ -10,7 +10,7 @@ type AddCardsContainerProps = { const AddCardsContainer = ({ cardsAmount }: AddCardsContainerProps) => { return ( - + {Array.from({ length: cardsAmount }).map((_, index) => ( { return ( - + { } return ( - + diff --git a/src/pages/Dashboard/CPULoad/CPUCard.tsx b/src/pages/Dashboard/CPULoad/CPUCard.tsx index aabab6b3..88aa420d 100644 --- a/src/pages/Dashboard/CPULoad/CPUCard.tsx +++ b/src/pages/Dashboard/CPULoad/CPUCard.tsx @@ -43,9 +43,7 @@ const CPUCard = ({ load }: CPUCardProps) => { return ( { return ( - + {
{ return ( {children} diff --git a/src/pages/Dashboard/DeviceUptime/DeviceUptime.tsx b/src/pages/Dashboard/DeviceUptime/DeviceUptime.tsx index 7878d729..d1862f3c 100644 --- a/src/pages/Dashboard/DeviceUptime/DeviceUptime.tsx +++ b/src/pages/Dashboard/DeviceUptime/DeviceUptime.tsx @@ -31,7 +31,7 @@ const DeviceUptime = () => { } return ( - + diff --git a/src/pages/Dashboard/MemoryCard/MemoryCard.tsx b/src/pages/Dashboard/MemoryCard/MemoryCard.tsx index 179a3b9b..b0321a5f 100644 --- a/src/pages/Dashboard/MemoryCard/MemoryCard.tsx +++ b/src/pages/Dashboard/MemoryCard/MemoryCard.tsx @@ -45,9 +45,7 @@ const MemoryCard = ({ currentMemory, maxMemory }: MemoryCardProps) => { return ( { return ( { return ( { return ( - +