Fix type errors in filtering
Fixes type errors related to transaction filtering and property assignments.
This commit is contained in:
@@ -13,4 +13,5 @@ export interface FilteringReturn {
|
||||
handlePrevMonth: () => void;
|
||||
handleNextMonth: () => void;
|
||||
getTotalExpenses: (filteredTransactions: Transaction[]) => number;
|
||||
forceRefresh: () => void;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
|
||||
import { getPrevMonth, getNextMonth } from '../dateUtils';
|
||||
|
||||
/**
|
||||
* 월 선택 관련 훅
|
||||
* 이전/다음 월 선택 기능을 제공합니다.
|
||||
*/
|
||||
export const useMonthSelection = (
|
||||
selectedMonth: string,
|
||||
setSelectedMonth: (month: string) => void
|
||||
) => {
|
||||
export const useMonthSelection = ({
|
||||
selectedMonth,
|
||||
setSelectedMonth
|
||||
}: {
|
||||
selectedMonth: string;
|
||||
setSelectedMonth: (month: string) => void;
|
||||
}) => {
|
||||
// 이전 월로 변경
|
||||
const handlePrevMonth = () => {
|
||||
setSelectedMonth(getPrevMonth(selectedMonth));
|
||||
|
||||
Reference in New Issue
Block a user