update OverflowMenu usgae
This commit is contained in:
parent
0d5b824da3
commit
fc78890544
|
@ -13,7 +13,7 @@ export default function CollectionSort(props: CollectionSortProps) {
|
|||
return (
|
||||
<OverflowMenu
|
||||
ariaControls="collection-sort"
|
||||
menuTriggerIcon={<SortIcon />}>
|
||||
triggerButtonIcon={<SortIcon />}>
|
||||
<CollectionSortOptions {...props} />
|
||||
</OverflowMenu>
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue