Reverted to edit edt-df6bf84a-482f-4f45-8871-2125b421fdb0: "Add bottom padding to screen
Adds 100px bottom padding to the screen."
This commit is contained in:
@@ -37,18 +37,15 @@ export const useBudgetTabContent = ({
|
||||
calculatePercentage,
|
||||
onSaveBudget
|
||||
}: UseBudgetTabContentProps): UseBudgetTabContentReturn => {
|
||||
// 데이터가 undefined인 경우를 방지하기 위한 기본값 설정
|
||||
const safeData = data || { targetAmount: 0, spentAmount: 0, remainingAmount: 0 };
|
||||
|
||||
const [categoryBudgets, setCategoryBudgets] = useState<Record<string, number>>({});
|
||||
const [showBudgetInput, setShowBudgetInput] = useState(false);
|
||||
const spentAmount = safeData.spentAmount;
|
||||
const targetAmount = safeData.targetAmount;
|
||||
const spentAmount = data.spentAmount;
|
||||
const targetAmount = data.targetAmount;
|
||||
|
||||
// 로그 추가 - 받은 데이터 확인
|
||||
useEffect(() => {
|
||||
console.log(`BudgetTabContent 수신 데이터:`, safeData);
|
||||
}, [safeData]);
|
||||
console.log(`BudgetTabContent 수신 데이터:`, data);
|
||||
}, [data]);
|
||||
|
||||
// 전역 예산 데이터가 변경되었을 때 로컬 상태 갱신
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user