diff --git a/striker-ui/components/ButtonWithMenu.tsx b/striker-ui/components/ButtonWithMenu.tsx index ba24f43c..9cfed523 100644 --- a/striker-ui/components/ButtonWithMenu.tsx +++ b/striker-ui/components/ButtonWithMenu.tsx @@ -22,7 +22,17 @@ const ButtonWithMenu: FC = (props) => { const open = useMemo(() => Boolean(anchorEl), [anchorEl]); - const buttonContent = useMemo(() => children ?? , [children]); + const buttonContent = useMemo(() => { + if (children) { + return children; + } + + if (variant === 'icon') { + return ; + } + + return 'Options'; + }, [children, iconButtonProps?.size, variant]); const buttonClickHandler = useCallback>( (...args) => { diff --git a/striker-ui/components/ServerMenu.tsx b/striker-ui/components/ServerMenu.tsx index 7a1268cd..c07d7a72 100644 --- a/striker-ui/components/ServerMenu.tsx +++ b/striker-ui/components/ServerMenu.tsx @@ -1,3 +1,4 @@ +import { PowerSettingsNew as PowerSettingsNewIcon } from '@mui/icons-material'; import { Box } from '@mui/material'; import { FC, useMemo } from 'react'; @@ -131,7 +132,11 @@ const ServerMenu: FC = (props) => { ); }} {...buttonWithMenuProps} - /> + > + + {confirmDialog} );