From 5ae39c9292bb69853b69a67ff1889380a651d6ca Mon Sep 17 00:00:00 2001 From: JUNYI OU <49964599+Irvingouj@users.noreply.github.com> Date: Sun, 29 Jan 2023 08:22:25 -0500 Subject: [PATCH] fix: quick typo fix (#6167) --- src/components/dropdownMenu/DropdownMenuItem.tsx | 4 ++-- src/components/dropdownMenu/DropdownMenuItemLink.tsx | 4 ++-- src/components/dropdownMenu/common.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/dropdownMenu/DropdownMenuItem.tsx b/src/components/dropdownMenu/DropdownMenuItem.tsx index 9a8e9246..5532dbaa 100644 --- a/src/components/dropdownMenu/DropdownMenuItem.tsx +++ b/src/components/dropdownMenu/DropdownMenuItem.tsx @@ -1,6 +1,6 @@ import React from "react"; import { - getDrodownMenuItemClassName, + getDropdownMenuItemClassName, useHandleDropdownMenuItemClick, } from "./common"; import MenuItemContent from "./DropdownMenuItemContent"; @@ -26,7 +26,7 @@ const DropdownMenuItem = ({ {...rest} onClick={handleClick} type="button" - className={getDrodownMenuItemClassName(className)} + className={getDropdownMenuItemClassName(className)} title={rest.title ?? rest["aria-label"]} > diff --git a/src/components/dropdownMenu/DropdownMenuItemLink.tsx b/src/components/dropdownMenu/DropdownMenuItemLink.tsx index fdf87f7a..c93749ac 100644 --- a/src/components/dropdownMenu/DropdownMenuItemLink.tsx +++ b/src/components/dropdownMenu/DropdownMenuItemLink.tsx @@ -1,7 +1,7 @@ import MenuItemContent from "./DropdownMenuItemContent"; import React from "react"; import { - getDrodownMenuItemClassName, + getDropdownMenuItemClassName, useHandleDropdownMenuItemClick, } from "./common"; @@ -29,7 +29,7 @@ const DropdownMenuItemLink = ({ href={href} target="_blank" rel="noreferrer" - className={getDrodownMenuItemClassName(className)} + className={getDropdownMenuItemClassName(className)} title={rest.title ?? rest["aria-label"]} onClick={handleClick} > diff --git a/src/components/dropdownMenu/common.ts b/src/components/dropdownMenu/common.ts index bc4fcfc0..9b5e7bfe 100644 --- a/src/components/dropdownMenu/common.ts +++ b/src/components/dropdownMenu/common.ts @@ -6,7 +6,7 @@ export const DropdownMenuContentPropsContext = React.createContext<{ onSelect?: (event: Event) => void; }>({}); -export const getDrodownMenuItemClassName = (className = "") => { +export const getDropdownMenuItemClassName = (className = "") => { return `dropdown-menu-item dropdown-menu-item-base ${className}`.trim(); };