update OverflowMenu usgae

This commit is contained in:
Abhinav 2022-06-21 15:16:57 +05:30
parent 0d5b824da3
commit fc78890544
3 changed files with 8 additions and 11 deletions

View file

@ -13,7 +13,7 @@ export default function CollectionSort(props: CollectionSortProps) {
return (
<OverflowMenu
ariaControls="collection-sort"
menuTriggerIcon={<SortIcon />}>
triggerButtonIcon={<SortIcon />}>
<CollectionSortOptions {...props} />
</OverflowMenu>
);

View file

@ -8,7 +8,6 @@ import constants from 'utils/strings/constants';
import { SetCollectionNamerAttributes } from './CollectionNamer';
import { Collection } from 'types/collection';
import { IsArchived } from 'utils/magicMetadata';
import { IconButton } from '@mui/material';
import { GalleryContext } from 'pages/gallery';
import { logError } from 'utils/sentry';
import { VISIBILITY_STATE } from 'types/magicMetadata';
@ -152,14 +151,12 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
return (
<OverflowMenu
ariaControls={`collection-options-${props.activeCollection.id}`}
menuTriggerIcon={
<IconButton
sx={{
triggerButtonIcon={<MoreVertIcon />}
triggerButtonProps={{
sx: {
background: (theme) => theme.palette.background.paper,
},
}}>
<MoreVertIcon />
</IconButton>
}>
<OverflowMenuOption onClick={showRenameCollectionModal}>
{constants.RENAME}
</OverflowMenuOption>

View file

@ -19,7 +19,7 @@ const ShareeRow = ({ sharee, collectionUnshare }: IProps) => {
{sharee.email}
<OverflowMenu
ariaControls={`email-share-${sharee.email}`}
menuTriggerIcon={<MoreHorizIcon />}>
triggerButtonIcon={<MoreHorizIcon />}>
<OverflowMenuOption
color="danger"
onClick={handleClick}