diff --git a/src/CqlBuilderPanel/codesSection/codesSubSection/codeSubSection/ResultsSection.tsx b/src/CqlBuilderPanel/codesSection/codesSubSection/codeSubSection/ResultsSection.tsx index 84ecef66..b9a760d9 100644 --- a/src/CqlBuilderPanel/codesSection/codesSubSection/codeSubSection/ResultsSection.tsx +++ b/src/CqlBuilderPanel/codesSection/codesSubSection/codeSubSection/ResultsSection.tsx @@ -17,7 +17,6 @@ import { import { Code, CodeStatus } from "../../../../api/useTerminologyServiceApi"; import ToolTippedIcon from "../../../../toolTippedIcon/ToolTippedIcon"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; -import { Popover } from "@madie/madie-design-system/dist/react"; import "./ResultsSection.scss"; import EditCodeDetailsDialog from "../common/EditCodeDetailsDialog"; @@ -43,9 +42,6 @@ export default function ResultsSection({ code, handleApplyCode, }: ResultSectionProps) { - const [optionsOpen, setOptionsOpen] = useState(false); - const [anchorEl, setAnchorEl] = useState(null); - const [selectedReferenceId, setSelectedReferenceId] = useState(null); const [selectedCodeDetails, setSelectedCodeDetails] = useState(null); const [openEditCodeDialog, setOpenEditCodeDialog] = useState(false); @@ -54,18 +50,9 @@ export default function ResultsSection({ selectedId, event: React.MouseEvent ) => { - setOptionsOpen(true); - setSelectedReferenceId(selectedId); - setAnchorEl(event.currentTarget); setSelectedCodeDetails(table.getRow(selectedId).original); }; - const handleClose = () => { - setOptionsOpen(false); - setSelectedReferenceId(null); - setAnchorEl(null); - }; - const data = [code]; const columns = useMemo[]>( () => [ @@ -139,7 +126,6 @@ export default function ResultsSection({ }); const handleApplyCodeInner = (selectedCode) => { handleApplyCode(selectedCode); - setOptionsOpen(false); }; const toggleEditCodeDialogState = () => { @@ -147,7 +133,6 @@ export default function ResultsSection({ }; const handleEditCode = () => { - setOptionsOpen(false); setOpenEditCodeDialog(true); };