Skip to content

Commit 8e5c3be

Browse files
1aurendjen-castiron
authored andcommitted
[C] Fix import lint error
1 parent 3c7bf55 commit 8e5c3be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/global/components/Overlay/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
33
import { FocusTrap } from "focus-trap-react";
44
import { useUID } from "react-uid";
55
import Header from "./Header";
6-
import { closest } from "reader/containers/annotation/annotatable-components/selectionHelpers";
6+
import helpers from "reader/containers/annotation/annotatable-components/selectionHelpers";
77

88
import BodyClass from "hoc/BodyClass";
99

@@ -26,7 +26,7 @@ function Overlay({
2626
const headerId = useUID();
2727

2828
function handleCloseEvent(event) {
29-
const dialog = closest(event.target, "dialog");
29+
const dialog = helpers.closest(event.target, "dialog");
3030
if (dialog) return false;
3131

3232
if (closeCallback) {

client/src/reader/containers/annotation/annotatable-components/selectionHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
findFirstMathUuidNode
66
} from "./mathHelpers";
77

8-
export const closest = (el, selector) => {
8+
const closest = (el, selector) => {
99
let element = el;
1010
const matchesSelector =
1111
element.matches ||

0 commit comments

Comments
 (0)