diff --git a/src/views/Chores/IconButtonWithMenu.jsx b/src/views/Chores/IconButtonWithMenu.jsx index bd7db7c..2ad1706 100644 --- a/src/views/Chores/IconButtonWithMenu.jsx +++ b/src/views/Chores/IconButtonWithMenu.jsx @@ -1,9 +1,10 @@ -import { Chip, Menu, MenuItem, Typography } from '@mui/joy' +import { Button, Chip, Menu, MenuItem, Typography } from '@mui/joy' import IconButton from '@mui/joy/IconButton' import React, { useEffect, useRef, useState } from 'react' import { getTextColorFromBackgroundColor } from '../../utils/Colors.jsx' const IconButtonWithMenu = ({ + label, key, icon, options, @@ -39,18 +40,36 @@ const IconButtonWithMenu = ({ return ( <> - - {icon} - + {!label && ( + + {icon} + {label ? label : null} + + )} + {label && ( + + )}