Hide title suggestions always
The title suggestions should not always be visible.
This commit is contained in:
@@ -48,10 +48,9 @@ const ExpenseFormFields: React.FC<ExpenseFormFieldsProps> = ({
|
||||
/>
|
||||
|
||||
{/* 카테고리별 제목 제안 - 카테고리 선택 후에만 표시 */}
|
||||
{selectedCategory && (
|
||||
{selectedCategory && showTitleSuggestions && (
|
||||
<ExpenseTitleSuggestions
|
||||
category={selectedCategory}
|
||||
showSuggestions={showTitleSuggestions}
|
||||
onSuggestionClick={handleTitleSuggestionClick}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -5,13 +5,11 @@ import { getPersonalizedTitleSuggestions } from '@/utils/userTitlePreferences';
|
||||
|
||||
interface ExpenseTitleSuggestionsProps {
|
||||
category: string;
|
||||
showSuggestions: boolean;
|
||||
onSuggestionClick: (suggestion: string) => void;
|
||||
}
|
||||
|
||||
const ExpenseTitleSuggestions: React.FC<ExpenseTitleSuggestionsProps> = ({
|
||||
category,
|
||||
showSuggestions,
|
||||
onSuggestionClick
|
||||
}) => {
|
||||
const titleSuggestions = getPersonalizedTitleSuggestions(category);
|
||||
|
||||
Reference in New Issue
Block a user