From 638f038e44659ac48d2b65ec87b8540466cabf20 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Mon, 16 Dec 2024 17:47:57 -0500 Subject: [PATCH] Tidy --- .../MergeDupsStep/MergeDragDrop/SidebarDragSense.tsx | 4 ++-- .../MergeDupsStep/MergeDragDrop/SidebarDrop.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDragSense.tsx b/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDragSense.tsx index 0e7eccb86..0abbde80f 100644 --- a/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDragSense.tsx +++ b/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDragSense.tsx @@ -1,10 +1,10 @@ import { Card } from "@mui/material"; -import { ReactElement } from "react"; +import { type ReactElement } from "react"; import { Draggable } from "react-beautiful-dnd"; import { trashId } from "goals/MergeDuplicates/MergeDupsStep/MergeDragDrop"; import SenseCardContent from "goals/MergeDuplicates/MergeDupsStep/SenseCardContent"; -import { MergeTreeSense } from "goals/MergeDuplicates/MergeDupsTreeTypes"; +import { type MergeTreeSense } from "goals/MergeDuplicates/MergeDupsTreeTypes"; import { useAppSelector } from "rootRedux/hooks"; import { type StoreState } from "rootRedux/types"; import theme from "types/theme"; diff --git a/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDrop.tsx b/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDrop.tsx index 69908d217..b7186483d 100644 --- a/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDrop.tsx +++ b/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/SidebarDrop.tsx @@ -15,12 +15,13 @@ export default function SidebarDrop(): ReactElement { const sidebar = useAppSelector( (state: StoreState) => state.mergeDuplicateGoal.tree.sidebar ); - const { mergeSenseId, wordId } = sidebar.senseRef; const vernacular = useAppSelector((state: StoreState) => { const tree = state.mergeDuplicateGoal.tree; return tree.words[tree.sidebar.senseRef.wordId]?.vern; }); + const { mergeSenseId, wordId } = sidebar.senseRef; + return ( {(providedDroppable): ReactElement => (