Skip to content

Commit 1bb1e3b

Browse files
committed
Remove unused code
1 parent 6ac9628 commit 1bb1e3b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

epictrack-web/src/components/shared/filterSelect/FilterSelect.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const FilterSelect = (props: SelectProps) => {
5858
}, [menuIsOpen]);
5959

6060
const handleChange = (newValue: any, actionMeta: any) => {
61-
console.log("changing");
6261
if (!isMulti) {
6362
if (isOptionSelected(newValue)) {
6463
setSelectedOptions("");
@@ -140,11 +139,6 @@ const FilterSelect = (props: SelectProps) => {
140139
setOptions(filterOptions);
141140
}, [props.options]);
142141

143-
React.useEffect(() => {
144-
console.log("selectValue", selectValue);
145-
// setSelectValue(defaultValue || standardDefault);
146-
}, [selectValue]);
147-
148142
return (
149143
<Select
150144
value={selectValue}
@@ -233,11 +227,11 @@ const FilterSelect = (props: SelectProps) => {
233227
fontWeight: 700,
234228
}),
235229
}),
236-
// menuPortal: (base, props) => ({
237-
// ...base,
238-
// zIndex: 2,
239-
// marginTop: "4px",
240-
// }),
230+
menuPortal: (base, props) => ({
231+
...base,
232+
zIndex: 2,
233+
marginTop: "4px",
234+
}),
241235
input: (base, props) => ({
242236
...base,
243237
fontWeight: "400",

0 commit comments

Comments
 (0)