Skip to content

Commit

Permalink
MAT-7099 remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankaplan committed Nov 27, 2024
1 parent 7a38447 commit d908af5
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -43,9 +42,6 @@ export default function ResultsSection({
code,
handleApplyCode,
}: ResultSectionProps) {
const [optionsOpen, setOptionsOpen] = useState<boolean>(false);
const [anchorEl, setAnchorEl] = useState(null);
const [selectedReferenceId, setSelectedReferenceId] = useState<string>(null);
const [selectedCodeDetails, setSelectedCodeDetails] =
useState<ResultsColumnRow>(null);
const [openEditCodeDialog, setOpenEditCodeDialog] = useState<boolean>(false);
Expand All @@ -54,18 +50,9 @@ export default function ResultsSection({
selectedId,
event: React.MouseEvent<HTMLButtonElement>
) => {
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<ColumnDef<ResultsColumnRow>[]>(
() => [
Expand Down Expand Up @@ -139,15 +126,13 @@ export default function ResultsSection({
});
const handleApplyCodeInner = (selectedCode) => {
handleApplyCode(selectedCode);
setOptionsOpen(false);
};

const toggleEditCodeDialogState = () => {
setOpenEditCodeDialog(!open);
};

const handleEditCode = () => {
setOptionsOpen(false);
setOpenEditCodeDialog(true);
};

Expand Down

0 comments on commit d908af5

Please sign in to comment.