From a264704fd5a428a0a688e488078c8ed9fac96766 Mon Sep 17 00:00:00 2001 From: Joshua Krebs <101300086+Jod929@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:39:48 -0700 Subject: [PATCH] refactor budget/IncomeHeader to tsx (#1670) --- .../budget/{IncomeHeader.js => IncomeHeader.tsx} | 11 +++++++++-- upcoming-release-notes/1670.md | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) rename packages/desktop-client/src/components/budget/{IncomeHeader.js => IncomeHeader.tsx} (69%) create mode 100644 upcoming-release-notes/1670.md diff --git a/packages/desktop-client/src/components/budget/IncomeHeader.js b/packages/desktop-client/src/components/budget/IncomeHeader.tsx similarity index 69% rename from packages/desktop-client/src/components/budget/IncomeHeader.js rename to packages/desktop-client/src/components/budget/IncomeHeader.tsx index 0b898231cc4..d8cec93eb4f 100644 --- a/packages/desktop-client/src/components/budget/IncomeHeader.js +++ b/packages/desktop-client/src/components/budget/IncomeHeader.tsx @@ -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 ( ); diff --git a/upcoming-release-notes/1670.md b/upcoming-release-notes/1670.md new file mode 100644 index 00000000000..190f3ee63a2 --- /dev/null +++ b/upcoming-release-notes/1670.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [Jod929] +--- + +Refactor budget/IncomeHeader to tsx \ No newline at end of file