Skip to content

Commit

Permalink
Remove unused code and comments from SelectInput and default props
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jan 26, 2025
1 parent 01cc764 commit 0f0f008
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
6 changes: 3 additions & 3 deletions backend/src/components/scheduler/store/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ const defaultViews = (props: Partial<SchedulerProps>) => {

export const defaultProps = (props: Partial<SchedulerProps>) => {
const {
month,
week,
day,
// month,
// week,
// day,
translations,
resourceFields,
view,
Expand Down

0 comments on commit 0f0f008

Please sign in to comment.