diff --git a/packages/desktop-client/src/components/budget/MonthCountSelector.js b/packages/desktop-client/src/components/budget/MonthCountSelector.tsx similarity index 78% rename from packages/desktop-client/src/components/budget/MonthCountSelector.js rename to packages/desktop-client/src/components/budget/MonthCountSelector.tsx index d34dbf7a7f7..d5bba0f3a20 100644 --- a/packages/desktop-client/src/components/budget/MonthCountSelector.js +++ b/packages/desktop-client/src/components/budget/MonthCountSelector.tsx @@ -6,7 +6,12 @@ import View from '../common/View'; import { useBudgetMonthCount } from './BudgetMonthCountContext'; -function Calendar({ color, onClick }) { +type CalendarProps = { + color: string; + onClick: () => void; +}; + +function Calendar({ color, onClick }: CalendarProps) { return ( Promise; +}; + +export function MonthCountSelector({ + maxMonths, + onChange, +}: MonthCountSelectorProps) { let { displayMax } = useBudgetMonthCount(); // It doesn't make sense to show anything if we can only fit one