From b67ebf46315f0699256758eb5f3409b5751cceeb Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 12:47:15 +0000 Subject: [PATCH] Hide title suggestions always The title suggestions should not always be visible. --- src/components/expenses/ExpenseFormFields.tsx | 3 +-- src/components/expenses/ExpenseTitleSuggestions.tsx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/expenses/ExpenseFormFields.tsx b/src/components/expenses/ExpenseFormFields.tsx index 8464bb7..7a3e396 100644 --- a/src/components/expenses/ExpenseFormFields.tsx +++ b/src/components/expenses/ExpenseFormFields.tsx @@ -48,10 +48,9 @@ const ExpenseFormFields: React.FC = ({ /> {/* 카테고리별 제목 제안 - 카테고리 선택 후에만 표시 */} - {selectedCategory && ( + {selectedCategory && showTitleSuggestions && ( )} diff --git a/src/components/expenses/ExpenseTitleSuggestions.tsx b/src/components/expenses/ExpenseTitleSuggestions.tsx index 19af75c..8c45b0c 100644 --- a/src/components/expenses/ExpenseTitleSuggestions.tsx +++ b/src/components/expenses/ExpenseTitleSuggestions.tsx @@ -5,13 +5,11 @@ import { getPersonalizedTitleSuggestions } from '@/utils/userTitlePreferences'; interface ExpenseTitleSuggestionsProps { category: string; - showSuggestions: boolean; onSuggestionClick: (suggestion: string) => void; } const ExpenseTitleSuggestions: React.FC = ({ category, - showSuggestions, onSuggestionClick }) => { const titleSuggestions = getPersonalizedTitleSuggestions(category);