From a56b7e8de50645802f13f7723934a78f8bb01fd3 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Wed, 8 Jul 2026 18:24:33 +0330 Subject: [PATCH] fix: update handleChange to use optional chaining and add "use client" directive in Connect component --- app/component/fields/Field.js | 2 +- components/contactUs/Connect.js | 2 ++ graphify-out/GRAPH_REPORT.md | 4 ++-- graphify-out/graph.json | 4 ++-- graphify-out/manifest.json | 8 ++++---- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/component/fields/Field.js b/app/component/fields/Field.js index dbbd4d4..9d862ab 100644 --- a/app/component/fields/Field.js +++ b/app/component/fields/Field.js @@ -23,7 +23,7 @@ function Field({ placeholder={isPlaceHolder && title} className="!w-full !mx-auto !bg-[#FFF]" onChange={(e) => { - handleChange(name || "", e.target.value); + handleChange?.(name || "", e.target.value); }} sx={{ "& .MuiFormLabel-root": { diff --git a/components/contactUs/Connect.js b/components/contactUs/Connect.js index 8aaeb4a..0ed3954 100644 --- a/components/contactUs/Connect.js +++ b/components/contactUs/Connect.js @@ -1,3 +1,5 @@ +"use client"; + import ArrowLeftC from "../icons/ArrowLeftC"; import { Button } from "@mui/material"; import FieldLabel from "./FieldLabel"; diff --git a/graphify-out/GRAPH_REPORT.md b/graphify-out/GRAPH_REPORT.md index 5640c48..c91c448 100644 --- a/graphify-out/GRAPH_REPORT.md +++ b/graphify-out/GRAPH_REPORT.md @@ -1,7 +1,7 @@ # Graph Report - nobat724_front (2026-07-08) ## Corpus Check -- 594 files · ~536,084 words +- 594 files · ~536,128 words - Verdict: corpus is large enough that graph structure adds value. ## Summary @@ -10,7 +10,7 @@ - Token cost: 0 input · 0 output ## Graph Freshness -- Built from commit: `082f54cf` +- Built from commit: `ee47b535` - Run `git rev-parse HEAD` and compare to check if the graph is stale. - Run `graphify update .` after code changes (no API cost). diff --git a/graphify-out/graph.json b/graphify-out/graph.json index 55721ea..72ff7c1 100644 --- a/graphify-out/graph.json +++ b/graphify-out/graph.json @@ -4417,7 +4417,7 @@ "label": "Connect()", "file_type": "code", "source_file": "components/contactUs/Connect.js", - "source_location": "L6", + "source_location": "L8", "_origin": "ast", "id": "contactus_connect_connect", "community": 14, @@ -41136,5 +41136,5 @@ } ], "hyperedges": [], - "built_at_commit": "082f54cf4dcb0982ebaee688c1418f7fa720c190" + "built_at_commit": "ee47b535d878f1744ea163606a0d759167dd0a36" } \ No newline at end of file diff --git a/graphify-out/manifest.json b/graphify-out/manifest.json index 126420d..83001c6 100644 --- a/graphify-out/manifest.json +++ b/graphify-out/manifest.json @@ -295,8 +295,8 @@ "semantic_hash": "" }, "app/component/fields/Field.js": { - "mtime": 1760953552.2275724, - "ast_hash": "70f08f1fdc86ff961332df235cf164e6", + "mtime": 1783522402.6345248, + "ast_hash": "1b94bb66aebb42eb9990c2b70ad72235", "semantic_hash": "" }, "app/component/fields/FieldIcon.js": { @@ -935,8 +935,8 @@ "semantic_hash": "" }, "components/contactUs/Connect.js": { - "mtime": 1783519228.5657191, - "ast_hash": "597a45afd5d84b62a7ed191822e6332e", + "mtime": 1783522389.3705227, + "ast_hash": "8846794c11d16abe52d92db5ebb6d864", "semantic_hash": "" }, "components/contactUs/ContentContact.js": {