fix: Remove unused fontSize prop (replaced by editorFontSize/previewFontSize)

This commit is contained in:
drelich
2026-03-17 20:58:52 +01:00
parent 75c3cd4796
commit 7611f8e82e
2 changed files with 1 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ function App() {
const [manualCategories, setManualCategories] = useState<string[]>([]);
const [isCategoriesCollapsed, setIsCategoriesCollapsed] = useState(false);
const [isFocusMode, setIsFocusMode] = useState(false);
const [fontSize] = useState(14);
const [username, setUsername] = useState('');
const [theme, setTheme] = useState<'light' | 'dark' | 'system'>('system');
const [effectiveTheme, setEffectiveTheme] = useState<'light' | 'dark'>('light');
@@ -274,7 +273,6 @@ function App() {
<NoteEditor
note={selectedNote}
onUpdateNote={handleUpdateNote}
fontSize={fontSize}
onUnsavedChanges={setHasUnsavedChanges}
categories={categories}
isFocusMode={isFocusMode}

View File

@@ -8,7 +8,6 @@ import { FloatingToolbar } from './FloatingToolbar';
interface NoteEditorProps {
note: Note | null;
onUpdateNote: (note: Note) => void;
fontSize: number;
onUnsavedChanges?: (hasChanges: boolean) => void;
categories: string[];
isFocusMode?: boolean;
@@ -20,7 +19,7 @@ interface NoteEditorProps {
}
export function NoteEditor({ note, onUpdateNote, fontSize, onUnsavedChanges, categories, isFocusMode, onToggleFocusMode, editorFont = 'Source Code Pro', editorFontSize = 14, previewFont = 'Merriweather', previewFontSize = 16 }: NoteEditorProps) {
export function NoteEditor({ note, onUpdateNote, onUnsavedChanges, categories, isFocusMode, onToggleFocusMode, editorFont = 'Source Code Pro', editorFontSize = 14, previewFont = 'Merriweather', previewFontSize = 16 }: NoteEditorProps) {
const [localTitle, setLocalTitle] = useState('');
const [localContent, setLocalContent] = useState('');
const [localCategory, setLocalCategory] = useState('');