Add spacing below last card

Adds 30px of spacing below the last card on the screen.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-22 13:19:36 +00:00
parent 5f0092edf2
commit 0c87fad21b
2 changed files with 5 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
import React, { useState, useCallback, useRef } from 'react'; import React, { useState, useCallback, useRef } from 'react';
import { Transaction } from '@/contexts/budget/types'; import { Transaction } from '@/contexts/budget/types';
import TransactionEditDialog from './TransactionEditDialog'; import TransactionEditDialog from './TransactionEditDialog';
@@ -155,7 +156,7 @@ const RecentTransactionsSection: React.FC<RecentTransactionsSectionProps> = ({
return amount.toLocaleString('ko-KR') + '원'; return amount.toLocaleString('ko-KR') + '원';
}; };
return ( return (
<div className="mt-4 mb-[40px]"> <div className="mt-4 mb-[30px]">
<div className="flex justify-between items-center mb-2"> <div className="flex justify-between items-center mb-2">
<h2 className="text-lg font-semibold"> </h2> <h2 className="text-lg font-semibold"> </h2>
<Link to="/transactions" className="text-sm text-neuro-income flex items-center"> <Link to="/transactions" className="text-sm text-neuro-income flex items-center">

View File

@@ -48,7 +48,7 @@ const HomeContent: React.FC<HomeContentProps> = ({
getCategorySpending getCategorySpending
}) => { }) => {
return ( return (
<> <div className="pb-[30px]">
{/* 지출 카테고리 */} {/* 지출 카테고리 */}
{getCategorySpending().some(cat => cat.current > 0 || cat.total > 0) ? ( {getCategorySpending().some(cat => cat.current > 0 || cat.total > 0) ? (
<BudgetCategoriesSection categories={getCategorySpending()} /> <BudgetCategoriesSection categories={getCategorySpending()} />
@@ -74,12 +74,12 @@ const HomeContent: React.FC<HomeContentProps> = ({
onUpdateTransaction={updateTransaction} onUpdateTransaction={updateTransaction}
/> />
) : ( ) : (
<div className="mt-4"> <div className="mt-4 mb-[30px]">
<h2 className="text-lg font-semibold mb-3"> </h2> <h2 className="text-lg font-semibold mb-3"> </h2>
<EmptyState /> <EmptyState />
</div> </div>
)} )}
</> </div>
); );
}; };