fix(chat): make Home pass react-hooks lint after the split
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:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user