From b993b288405d2da038d950555551f9df81fe9ac9 Mon Sep 17 00:00:00 2001 From: calli Date: Sat, 17 May 2025 17:21:49 +0300 Subject: [PATCH] Add balance and storage alert counts to account card --- src/app/components/Account/AccountCard.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/app/components/Account/AccountCard.tsx b/src/app/components/Account/AccountCard.tsx index df4706b..416d440 100644 --- a/src/app/components/Account/AccountCard.tsx +++ b/src/app/components/Account/AccountCard.tsx @@ -376,6 +376,24 @@ export const AccountCard = ({ characters, isCollapsed: propIsCollapsed }: { char > Extractors: {runningExtractors}/{totalExtractors} + + d.alertState.hasLowStorage) ? theme.palette.error.main : theme.palette.text.secondary, + }} + > + Storage Alerts: {Object.values(planetDetails).filter(d => d.alertState.hasLowStorage).length} + + + d.alertState.hasLargeExtractorDifference) ? theme.palette.error.main : theme.palette.text.secondary, + }} + > + Balance Alerts: {Object.values(planetDetails).filter(d => d.alertState.hasLargeExtractorDifference).length} +