Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Nov 2, 2024
1 parent 02fc70b commit 706c53e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/packages/core/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { useRecoilCallback, useRecoilValue } from "recoil";
import styled from "styled-components";
import { ModalActionsRow } from "../Actions";
import Sidebar from "../Sidebar";
import { useLookerHelpers, useTooltipEventHandler } from "./hooks";
import { modalContext } from "./modal-context";
import ModalNavigation from "./ModalNavigation";
import { ModalSpace } from "./ModalSpace";
import { TooltipInfo } from "./TooltipInfo";
import { useLookerHelpers, useTooltipEventHandler } from "./hooks";
import { modalContext } from "./modal-context";
import { useModalSidebarRenderEntry } from "./use-sidebar-render-entry";

const ModalWrapper = styled.div`
Expand Down Expand Up @@ -156,9 +156,9 @@ const Modal = () => {
if (activeLookerRef.current) {
// we handle close logic in modal + other places
return;
} else {
await modalCloseHandler();
}

await modalCloseHandler();
}
},
[]
Expand Down Expand Up @@ -188,11 +188,10 @@ const Modal = () => {
looker.addEventListener("close", modalCloseHandler);

// remove previous event listener
removeTooltipEventHanlderRef.current &&
removeTooltipEventHanlderRef.current();
removeTooltipEventHanlderRef.current?.();
removeTooltipEventHanlderRef.current = addTooltipEventHandler(looker);
},
[addTooltipEventHandler]
[modalCloseHandler, addTooltipEventHandler]
);

const setActiveLookerRef = useCallback(
Expand Down

0 comments on commit 706c53e

Please sign in to comment.