diff --git a/src/components/mui/search-input.js b/src/components/mui/search-input.js
index 256f9237..428d1235 100644
--- a/src/components/mui/search-input.js
+++ b/src/components/mui/search-input.js
@@ -14,7 +14,7 @@
import React, { useEffect, useState, useRef } from "react";
import { TextField, IconButton, InputAdornment } from "@mui/material";
import SearchIcon from "@mui/icons-material/Search";
-import ClearIcon from "@mui/icons-material/Clear";
+import CancelIcon from "@mui/icons-material/Cancel";
import debounce from "lodash/debounce";
import { DEBOUNCE_WAIT } from "../../utils/constants";
@@ -59,23 +59,18 @@ const SearchInput = ({ term, onSearch, placeholder = "Search...", debounced }) =
value={searchTerm}
placeholder={placeholder}
slotProps={{
- input: {
- startAdornment: debounced && (
+ input: {
+ startAdornment: (
),
endAdornment: (
- {searchTerm ? (
-
-
+ {searchTerm && (
+
+
- ) :
- (
- !debounced &&
)}
)
@@ -86,8 +81,9 @@ const SearchInput = ({ term, onSearch, placeholder = "Search...", debounced }) =
fullWidth
sx={{
"& .MuiOutlinedInput-root": {
- height: "36px"
- }
+ height: "36px",
+ paddingX: 1
+ },
}}
/>
);