aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/CustomSelect
diff options
context:
space:
mode:
authorBlaster4385 <[email protected]>2024-03-03 19:02:40 +0530
committerBlaster4385 <[email protected]>2024-04-30 11:10:37 +0530
commit5e7629a055e8568a0775436b1dbf5797a5640056 (patch)
tree7e21589964ce696fba683151ec65e36a2bcd32d0 /client/src/components/CustomSelect
parent641909aa31b2683b89fe62a219f7d5f56fbad934 (diff)
feat: formated code
Diffstat (limited to 'client/src/components/CustomSelect')
-rw-r--r--client/src/components/CustomSelect/CustomSelect.jsx2
-rw-r--r--client/src/components/CustomSelect/CustomSelect.module.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/components/CustomSelect/CustomSelect.jsx b/client/src/components/CustomSelect/CustomSelect.jsx
index 2f98b34..f588d38 100644
--- a/client/src/components/CustomSelect/CustomSelect.jsx
+++ b/client/src/components/CustomSelect/CustomSelect.jsx
@@ -4,7 +4,7 @@ import styles from "./CustomSelect.module.css";
const CustomSelect = ({ options, onSelect }) => {
const [isOpen, setIsOpen] = useState(false);
const [selectedOption, setSelectedOption] = useState(
- options.length > 0 ? options[0] : null
+ options.length > 0 ? options[0] : null,
);
const toggleDropdown = () => {
diff --git a/client/src/components/CustomSelect/CustomSelect.module.css b/client/src/components/CustomSelect/CustomSelect.module.css
index 1cd7b64..81f9e62 100644
--- a/client/src/components/CustomSelect/CustomSelect.module.css
+++ b/client/src/components/CustomSelect/CustomSelect.module.css
@@ -46,7 +46,7 @@
width: 8rem;
font-size: 14px;
}
-
+
.selected__option {
padding: 8px;
}