Add spacing below last card
Adds 30px of spacing below the last card on the screen.
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user