fix(chat): make Home pass react-hooks lint after the split
Independent Staging Quality Gate / validate (push) Successful in 17m39s
Independent Staging Quality Gate / publish (push) Successful in 7m11s

eslint-plugin-react-hooks now analyzes the smaller Home, so render-time ref writes and sync effect setState were failing the staging gate.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-02 07:01:36 +08:00
co-authored by Cursor
parent 124d3990b2
commit 058e5db9b5
7 changed files with 106 additions and 75 deletions
@@ -33,18 +33,13 @@ const settingsItems: ReadonlyArray<{
export const AccountDialogOverlay = memo(function AccountDialogOverlay({
open,
dialog,
openEpoch,
modelRef,
model,
}: Readonly<{
open: boolean;
dialog: "profile" | "chart-library" | "general" | "logout" | null;
openEpoch: number;
modelRef: MutableRefObject<AccountOverlayModel | null>;
model: AccountOverlayModel | null;
}>) {
if (!open || dialog === null) return null;
const model = modelRef.current;
if (!model) return null;
void openEpoch;
if (!open || dialog === null || model === null) return null;
const isSettingsDialog = dialog !== "logout";
const renderSettingsContent = () => {