Resolve Settings page Select component errors

- Enhanced Select component to accept boolean values in PropTypes
- Updated component documentation to reflect new type support
- Added default value for showURL prop to prevent undefined value errors

- Fixed two related issues:
  1. Type mismatch error when passing boolean values
  2. Required prop error during initial rendering
This commit is contained in:
mohadeseh safari committed 2025-05-29 21:01:09 -04:00
1 parent 064fb1bfd9
commit aa91c9ff86
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import { useTheme } from "@emotion/react";
import { PropTypes } from "prop-types";
import { useTranslation } from "react-i18next";
const SettingsURL = ({ HEADING_SX, handleChange, showURL }) => {
const SettingsURL = ({ HEADING_SX, handleChange, showURL = false }) => {
const { t } = useTranslation();
const theme = useTheme();
return (