Skip to content

Commit

Permalink
Cashflow.js -> Cashflow.tsx (#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasboebel authored Dec 12, 2023
1 parent cd2d186 commit 36914ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Header from '../Header';
import { cashFlowByDate } from '../spreadsheets/cash-flow-spreadsheet';
import useReport from '../useReport';

function CashFlow() {
export default function CashFlow(): JSX.Element {
const {
filters,
conditionsOp,
Expand Down Expand Up @@ -108,8 +108,9 @@ function CashFlow() {
onDeleteFilter={onDeleteFilter}
conditionsOp={conditionsOp}
onCondOpChange={onCondOpChange}
headerPrefixItems={undefined}
selectGraph={undefined}
/>

<View
style={{
backgroundColor: theme.tableBackground,
Expand Down Expand Up @@ -167,12 +168,7 @@ function CashFlow() {
</Text>
</View>

<CashFlowGraph
start={start}
end={end}
graphData={graphData}
isConcise={isConcise}
/>
<CashFlowGraph graphData={graphData} isConcise={isConcise} />

<View style={{ marginTop: 30 }}>
<Paragraph>
Expand All @@ -189,5 +185,3 @@ function CashFlow() {
</View>
);
}

export default CashFlow;
2 changes: 1 addition & 1 deletion packages/loot-core/src/types/server-handlers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface ServerHandlers {
list: Array<CategoryEntity>;
}>;

'get-earliest-transaction': () => Promise<unknown>;
'get-earliest-transaction': () => Promise<{ date: string }>;

'get-budget-bounds': () => Promise<{ start: string; end: string }>;

Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2005.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [lucasboebel]
---

Maintenance: Update CashFlow.js to use typescript

0 comments on commit 36914ab

Please sign in to comment.