Parcourir la source

console.log出力の修正

develop
sosuke.iwabuchi il y a 2 ans
Parent
révision
10ceea247c
3 fichiers modifiés avec 9 ajouts et 16 suppressions
  1. +0
    -2
      src/components/hook-form/RHFCheckbox.tsx
  2. +9
    -10
      src/contexts/SearchConditionContext.tsx
  3. +0
    -4
      src/layouts/dashbord/index.tsx

+ 0
- 2
src/components/hook-form/RHFCheckbox.tsx Voir le fichier

@@ -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";
}



+ 9
- 10
src/contexts/SearchConditionContext.tsx Voir le fichier

@@ -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]);


+ 0
- 4
src/layouts/dashbord/index.tsx Voir le fichier

@@ -29,10 +29,6 @@ function App() {
setMobileOpen(!mobileOpen);
};

useEffect(() => {
console.log({ drawerWidth, innerWidth, contentsWidth });
}, [drawerWidth, innerWidth, contentsWidth]);

return (
<Box sx={{ display: "flex", minHeight: "100vh" }}>
<Box


Chargement…
Annuler
Enregistrer