From edeb3ff95ce580d79a5de99811373dbddeb5f980 Mon Sep 17 00:00:00 2001
From: shall0pass <20625555+shall0pass@users.noreply.github.com>
Date: Sat, 16 Sep 2023 18:37:53 -0500
Subject: [PATCH] lint
---
.../src/components/budget/BalanceWithCarryover.tsx | 2 +-
packages/desktop-client/src/components/budget/util.js | 10 ++++------
.../src/components/spreadsheet/CellValue.tsx | 2 +-
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx b/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx
index aab6fc2329c..fe7195f153f 100644
--- a/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx
+++ b/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx
@@ -54,7 +54,7 @@ export default function BalanceWithCarryover({
)}
diff --git a/packages/desktop-client/src/components/budget/util.js b/packages/desktop-client/src/components/budget/util.js
index 6a1c52b6817..0837acf46ff 100644
--- a/packages/desktop-client/src/components/budget/util.js
+++ b/packages/desktop-client/src/components/budget/util.js
@@ -42,18 +42,16 @@ export function makeAmountStyleGoal(value, goal) {
}
if (goal) {
- if ( goal>=0 ) {
- if(value= 0) {
+ if (value < goal) {
+ return { color: theme.warningText }; //TODO: Find the real theme value
}
- return {color: theme.noticeText}
-
+ return { color: theme.noticeText };
}
if (value < 0) {
return { color: theme.errorText };
}
}
-
}
export function makeAmountFullStyle(value) {
diff --git a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx
index 63cee3bb134..8b83ad57856 100644
--- a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx
+++ b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx
@@ -19,7 +19,7 @@ type CellValueProps = {
type?: string;
formatter?: (value) => ReactNode;
style?: CSSProperties;
- getStyle?: (value,modifier?) => CSSProperties;
+ getStyle?: (value, modifier?) => CSSProperties;
privacyFilter?: ConditionalPrivacyFilterProps['privacyFilter'];
['data-testid']?: string;
};