diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 5d4084a1..d75b8b41 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -50,7 +50,7 @@ import WelcomeScreen from "./welcome-screen/WelcomeScreen"; import { hostSidebarCountersAtom } from "./Sidebar/Sidebar"; import { jotaiScope } from "../jotai"; import { useAtom } from "jotai"; -import MainMenu from "./mainMenu/MainMenu"; +import MainMenu from "./main-menu/MainMenu"; interface LayerUIProps { actionManager: ActionManager; diff --git a/src/components/LibraryMenuHeaderContent.tsx b/src/components/LibraryMenuHeaderContent.tsx index abf6c2a2..beeb8dd1 100644 --- a/src/components/LibraryMenuHeaderContent.tsx +++ b/src/components/LibraryMenuHeaderContent.tsx @@ -193,7 +193,7 @@ export const LibraryMenuHeader: React.FC<{ {t("buttons.load")} @@ -202,7 +202,7 @@ export const LibraryMenuHeader: React.FC<{ {t("buttons.export")} @@ -219,7 +219,7 @@ export const LibraryMenuHeader: React.FC<{ setShowPublishLibraryDialog(true)} - dataTestId="lib-dropdown--remove" + data-testid="lib-dropdown--remove" > {t("buttons.publishLibrary")} diff --git a/src/components/dropdownMenu/DropdownMenuItem.tsx b/src/components/dropdownMenu/DropdownMenuItem.tsx index 47e20166..4f8db982 100644 --- a/src/components/dropdownMenu/DropdownMenuItem.tsx +++ b/src/components/dropdownMenu/DropdownMenuItem.tsx @@ -9,30 +9,23 @@ const DropdownMenuItem = ({ icon, onSelect, children, - dataTestId, shortcut, className, - style, - ariaLabel, + ...rest }: { icon?: JSX.Element; onSelect: () => void; children: React.ReactNode; - dataTestId?: string; shortcut?: string; className?: string; - style?: React.CSSProperties; - ariaLabel?: string; -}) => { +} & React.ButtonHTMLAttributes) => { return (