From 8a721bf2e0ec755b539d9963ffebb4e231fcb14f Mon Sep 17 00:00:00 2001 From: Neil <55785687+carkom@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:06:05 +0000 Subject: [PATCH] Renaming variables for reports files (#2069) * work * notes * error fixes * updates * card fix * fix filters * splitting PR work * notes * fixes * lint fix * Update upcoming-release-notes/2069.md Co-authored-by: Matiss Janis Aboltins --------- Co-authored-by: Matiss Janis Aboltins --- .../src/components/reports/ChooseGraph.tsx | 6 +- .../src/components/reports/ReportOptions.tsx | 13 +-- .../src/components/reports/ReportSidebar.js | 48 +++++------ .../src/components/reports/ReportSummary.js | 17 ++-- .../components/reports/ReportTableHeader.tsx | 4 +- .../src/components/reports/ReportTopbar.js | 6 +- .../reports/reports/CustomReport.js | 86 +++++++++---------- .../reports/reports/CustomReportCard.js | 15 ++-- .../spreadsheets/default-spreadsheet.tsx | 56 ++++++------ .../spreadsheets/grouped-spreadsheet.ts | 43 ++++++---- .../reports/spreadsheets/makeQuery.ts | 12 +-- upcoming-release-notes/2069.md | 6 ++ 12 files changed, 164 insertions(+), 148 deletions(-) create mode 100644 upcoming-release-notes/2069.md diff --git a/packages/desktop-client/src/components/reports/ChooseGraph.tsx b/packages/desktop-client/src/components/reports/ChooseGraph.tsx index ec9630c0f36..ad71b87a1eb 100644 --- a/packages/desktop-client/src/components/reports/ChooseGraph.tsx +++ b/packages/desktop-client/src/components/reports/ChooseGraph.tsx @@ -21,7 +21,7 @@ type ChooseGraphProps = { graphType: string; balanceType: string; groupBy: string; - empty: boolean; + showEmpty: boolean; scrollWidth: number; setScrollWidth: (value: number) => void; months: Month[]; @@ -32,7 +32,7 @@ export function ChooseGraph({ graphType, balanceType, groupBy, - empty, + showEmpty, scrollWidth, setScrollWidth, months, @@ -104,7 +104,7 @@ export function ChooseGraph({ > setEmpty(!empty)} + checked={showEmpty} + value={showEmpty} + onChange={() => setShowEmpty(!showEmpty)} />