From 4dfa54dd0566592331e530c2a91f2d5dff91dd79 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Thu, 6 Feb 2025 16:05:31 -0800 Subject: [PATCH] Add isSmall prop to enable a smaller MoreActionsMenu --- app/components/MoreActionsMenu.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/components/MoreActionsMenu.tsx b/app/components/MoreActionsMenu.tsx index 9aa608ba1a..774ad7c257 100644 --- a/app/components/MoreActionsMenu.tsx +++ b/app/components/MoreActionsMenu.tsx @@ -5,6 +5,8 @@ * * Copyright Oxide Computer Company */ +import cn from 'classnames' + import { More12Icon } from '@oxide/design-system/icons/react' import type { MenuAction } from '~/table/columns/action-col' @@ -16,13 +18,21 @@ interface MoreActionsMenuProps { /** The accessible name for the menu button */ label: string actions: MenuAction[] + isSmall?: boolean } -export const MoreActionsMenu = ({ actions, label }: MoreActionsMenuProps) => { +export const MoreActionsMenu = ({ + actions, + label, + isSmall = false, +}: MoreActionsMenuProps) => { return (