Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Dec 16, 2024
1 parent 57125ec commit 638f038
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Droppable droppableId={`${wordId} ${mergeSenseId}`} key={mergeSenseId}>
{(providedDroppable): ReactElement => (
Expand Down

0 comments on commit 638f038

Please sign in to comment.