Skip to content
Snippets Groups Projects
Unverified Commit ba4885cb authored by Joshua Krebs's avatar Joshua Krebs Committed by GitHub
Browse files

refactor budget/IncomeHeader to tsx (#1670)

parent a8a0f777
No related branches found
No related tags found
No related merge requests found
import React from 'react';
import React, { type ReactNode } from 'react';
import Button from '../common/Button';
import View from '../common/View';
import RenderMonths from './RenderMonths';
function IncomeHeader({ MonthComponent, onShowNewGroup }) {
type IncomeHeaderProps = {
MonthComponent?: ReactNode;
onShowNewGroup: () => void;
};
function IncomeHeader({ MonthComponent, onShowNewGroup }: IncomeHeaderProps) {
return (
<View style={{ flexDirection: 'row', flex: 1 }}>
<View
......@@ -22,6 +27,8 @@ function IncomeHeader({ MonthComponent, onShowNewGroup }) {
<RenderMonths
component={MonthComponent}
style={{ border: 0, justifyContent: 'flex-end' }}
editingIndex={undefined}
args={undefined}
/>
</View>
);
......
---
category: Maintenance
authors: [Jod929]
---
Refactor budget/IncomeHeader to tsx
\ No newline at end of file
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