Skip to content

Commit

Permalink
🔥 removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
scar055 committed Jan 31, 2024
1 parent 9cced78 commit 43c1fa2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/next-templates/src/app/FigureDetails/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ export const FigureDetails = ({
drawer.current?.close();
};

// const handleFocus = useCallback<EventListener>(
// (event) => {
// const isInsideDrawer = drawer.current?.contains(event.target as Node);
// if (!isInsideDrawer) {
// setOpen(false);
// drawer.current?.close();
// }
// },
// [drawer],
// );
useEffect(() => {
// close the dialog when someone clicked the backdrop
const handleBackdropClick = (event: MouseEvent) => {
Expand Down

0 comments on commit 43c1fa2

Please sign in to comment.