From 0f0f008a0f61c9952b57c2edc5de0378dba99168 Mon Sep 17 00:00:00 2001 From: aelassas Date: Sun, 26 Jan 2025 21:46:31 +0100 Subject: [PATCH] Remove unused code and comments from SelectInput and default props --- .../scheduler/components/inputs/SelectInput.tsx | 11 ++++++----- backend/src/components/scheduler/store/default.ts | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/src/components/scheduler/components/inputs/SelectInput.tsx b/backend/src/components/scheduler/components/inputs/SelectInput.tsx index 3196729c..0644f165 100644 --- a/backend/src/components/scheduler/components/inputs/SelectInput.tsx +++ b/backend/src/components/scheduler/components/inputs/SelectInput.tsx @@ -80,11 +80,12 @@ const EditorSelect = ({ } // eslint-disable-next-line }, [touched]); - const handleTouched = () => { - if (!state.touched) { - setState((prev) => ({ ...prev, touched: true, errorMsg: errMsg || prev.errorMsg })) - } - } + + // const handleTouched = () => { + // if (!state.touched) { + // setState((prev) => ({ ...prev, touched: true, errorMsg: errMsg || prev.errorMsg })) + // } + // } return ( <> diff --git a/backend/src/components/scheduler/store/default.ts b/backend/src/components/scheduler/store/default.ts index 02979b35..dcfc8607 100644 --- a/backend/src/components/scheduler/store/default.ts +++ b/backend/src/components/scheduler/store/default.ts @@ -84,9 +84,9 @@ const defaultViews = (props: Partial) => { export const defaultProps = (props: Partial) => { const { - month, - week, - day, + // month, + // week, + // day, translations, resourceFields, view,