Skip to content

Commit

Permalink
refactor budget/IncomeHeader to tsx (actualbudget#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jod929 authored Sep 8, 2023
1 parent 3c02946 commit a264704
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
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
Expand All @@ -22,6 +27,8 @@ function IncomeHeader({ MonthComponent, onShowNewGroup }) {
<RenderMonths
component={MonthComponent}
style={{ border: 0, justifyContent: 'flex-end' }}
editingIndex={undefined}
args={undefined}
/>
</View>
);
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1670.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [Jod929]
---

Refactor budget/IncomeHeader to tsx

0 comments on commit a264704

Please sign in to comment.