From 10ceea247c426d504da802dc67a6c05ff57f6c00 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Thu, 8 Jun 2023 09:24:55 +0900 Subject: [PATCH] =?UTF-8?q?console.log=E5=87=BA=E5=8A=9B=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/hook-form/RHFCheckbox.tsx | 2 -- src/contexts/SearchConditionContext.tsx | 19 +++++++++---------- src/layouts/dashbord/index.tsx | 4 ---- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/components/hook-form/RHFCheckbox.tsx b/src/components/hook-form/RHFCheckbox.tsx index 936ce12..4e6b462 100644 --- a/src/components/hook-form/RHFCheckbox.tsx +++ b/src/components/hook-form/RHFCheckbox.tsx @@ -31,11 +31,9 @@ export function RHFCheckbox({ name, readOnly, ...other }: RHFCheckboxProps) { const formValue = useMemo(() => { if (typeof _formValue === "boolean") { - console.log("boolean", _formValue); return _formValue; } if (typeof _formValue === "string") { - console.log("string", _formValue); return _formValue === "1" || _formValue === "true"; } diff --git a/src/contexts/SearchConditionContext.tsx b/src/contexts/SearchConditionContext.tsx index 678fa9f..409696d 100644 --- a/src/contexts/SearchConditionContext.tsx +++ b/src/contexts/SearchConditionContext.tsx @@ -72,15 +72,15 @@ export function SearchConditionContextProvider({ children }: Props) { } }); - console.log("compare condition", { - before, - after, - }); + // console.log("compare condition", { + // before, + // after, + // }); if (!isEqual(before, after)) { - console.log("add condition", { - before, - after, - }); + // console.log("add condition", { + // before, + // after, + // }); setCondition(after, "addCondition"); } }; @@ -105,12 +105,11 @@ export function SearchConditionContextProvider({ children }: Props) { const clearCondition = () => { setCondition({}, "clearCondition"); setInitialized(false); - console.log("clearCondition"); }; useEffect(() => { if (initialized) { - console.log("call applyToURL", { condition, initialized }); + // console.log("call applyToURL", { condition, initialized }); applyToURL(); } }, [condition, initialized]); diff --git a/src/layouts/dashbord/index.tsx b/src/layouts/dashbord/index.tsx index f040d27..f838b63 100644 --- a/src/layouts/dashbord/index.tsx +++ b/src/layouts/dashbord/index.tsx @@ -29,10 +29,6 @@ function App() { setMobileOpen(!mobileOpen); }; - useEffect(() => { - console.log({ drawerWidth, innerWidth, contentsWidth }); - }, [drawerWidth, innerWidth, contentsWidth]); - return (