Skip to content
Snippets Groups Projects
Unverified Commit 36914abc authored by Lucas's avatar Lucas Committed by GitHub
Browse files

Cashflow.js -> Cashflow.tsx (#2005)

parent cd2d1865
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ import Header from '../Header'; ...@@ -20,7 +20,7 @@ import Header from '../Header';
import { cashFlowByDate } from '../spreadsheets/cash-flow-spreadsheet'; import { cashFlowByDate } from '../spreadsheets/cash-flow-spreadsheet';
import useReport from '../useReport'; import useReport from '../useReport';
function CashFlow() { export default function CashFlow(): JSX.Element {
const { const {
filters, filters,
conditionsOp, conditionsOp,
...@@ -108,8 +108,9 @@ function CashFlow() { ...@@ -108,8 +108,9 @@ function CashFlow() {
onDeleteFilter={onDeleteFilter} onDeleteFilter={onDeleteFilter}
conditionsOp={conditionsOp} conditionsOp={conditionsOp}
onCondOpChange={onCondOpChange} onCondOpChange={onCondOpChange}
headerPrefixItems={undefined}
selectGraph={undefined}
/> />
<View <View
style={{ style={{
backgroundColor: theme.tableBackground, backgroundColor: theme.tableBackground,
...@@ -167,12 +168,7 @@ function CashFlow() { ...@@ -167,12 +168,7 @@ function CashFlow() {
</Text> </Text>
</View> </View>
<CashFlowGraph <CashFlowGraph graphData={graphData} isConcise={isConcise} />
start={start}
end={end}
graphData={graphData}
isConcise={isConcise}
/>
<View style={{ marginTop: 30 }}> <View style={{ marginTop: 30 }}>
<Paragraph> <Paragraph>
...@@ -189,5 +185,3 @@ function CashFlow() { ...@@ -189,5 +185,3 @@ function CashFlow() {
</View> </View>
); );
} }
export default CashFlow;
...@@ -54,7 +54,7 @@ export interface ServerHandlers { ...@@ -54,7 +54,7 @@ export interface ServerHandlers {
list: Array<CategoryEntity>; list: Array<CategoryEntity>;
}>; }>;
'get-earliest-transaction': () => Promise<unknown>; 'get-earliest-transaction': () => Promise<{ date: string }>;
'get-budget-bounds': () => Promise<{ start: string; end: string }>; 'get-budget-bounds': () => Promise<{ start: string; end: string }>;
......
---
category: Maintenance
authors: [lucasboebel]
---
Maintenance: Update CashFlow.js to use typescript
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment