mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-28 00:01:19 +00:00
fix(lint): Add missing tCommon dependency to useEffect
Resolves React hooks exhaustive-deps warning by including tCommon translation function in the dependency array.
This commit is contained in:
@@ -223,7 +223,7 @@ export default function Home() {
|
||||
}
|
||||
|
||||
document.title = title;
|
||||
}, [showComposer, composerMode, selectedEmail, selectedMailbox, mailboxes, t]);
|
||||
}, [showComposer, composerMode, selectedEmail, selectedMailbox, mailboxes, t, tCommon]);
|
||||
|
||||
// Check auth on mount
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user