chore: lint

This commit is contained in:
karishmas6
2024-06-15 21:06:02 +05:30
parent a09c7ef0ec
commit e07d47d941

View File

@@ -13,10 +13,10 @@ interface AddButtonProps {
export const AddButton: FC<AddButtonProps> = ( export const AddButton: FC<AddButtonProps> = (
{ handleClick, { handleClick,
size , size,
title, title,
disabled = false, disabled = false,
hoverEffect= true, hoverEffect = true,
style style
}) => { }) => {
return ( return (
@@ -25,12 +25,12 @@ export const AddButton: FC<AddButtonProps> = (
size={size || "small"} size={size || "small"}
onClick={handleClick} onClick={handleClick}
disabled={disabled} disabled={disabled}
sx={ hoverEffect sx={hoverEffect
? {...style, '&:hover': { background: 'rgba(0, 0, 0, 0.05)', color: 'rgba(0, 0, 0, 0.54)' }} ? { ...style, '&:hover': { background: 'rgba(0, 0, 0, 0.05)', color: 'rgba(0, 0, 0, 0.54)' } }
: {...style, '&:hover': { color: '#1976d2', backgroundColor: 'white' }} : { ...style, '&:hover': { color: '#1976d2', backgroundColor: 'white' } }
} }
> >
<Add/> {title} <Add /> {title}
</IconButton> </IconButton>
); );
}; };