Skip to content

Commit 69ce8bc

Browse files
committed
ILEX-136 fix linting
1 parent 200f5ab commit 69ce8bc

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

src/components/TermEditor/newTerm/FirstStepContent.jsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import {
66
Stack,
77
Typography,
88
Autocomplete,
9-
TextField
9+
TextField,
10+
Chip
1011
} from "@mui/material";
1112
import { GlobalDataContext } from "../../../contexts/DataContext";
1213
import CustomSingleSelect from "../../common/CustomSingleSelect";
1314
import CustomFormField from "../../common/CustomFormField";
1415
import NewTermSidebar from "../NewTermSidebar";
1516
import { HelpOutlinedIcon } from "../../../Icons";
17+
import CloseIcon from "@mui/icons-material/Close";
1618
import { vars } from "../../../theme/variables";
1719
import { TYPES, DEFAULT_TYPE } from "../../../constants/types";
1820
import { useTermSearch } from "../../../hooks/useTermSearch";
@@ -105,6 +107,17 @@ const FirstStepContent = ({
105107
[handleTermChange, onTermSelect],
106108
)
107109

110+
const renderChips = useCallback((values, getTagProps, chipStyles) =>
111+
values.map((option, index) => (
112+
<Chip
113+
key={index}
114+
label={option}
115+
deleteIcon={<CloseIcon />}
116+
sx={chipStyles}
117+
{...getTagProps({ index })}
118+
/>
119+
)), []);
120+
108121
return (
109122
<Box display="flex" height={1}>
110123
<Box sx={styles.contentBox}>

0 commit comments

Comments
 (0)