parent
1de7a2ebdd
commit
b90adaffb5
@ -0,0 +1,28 @@
|
||||
// SPDX-FileCopyrightText: © 2017 EteSync Authors
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
import MuiMenu, { MenuProps } from '@material-ui/core/Menu';
|
||||
import { PopoverOrigin } from '@material-ui/core/Popover';
|
||||
|
||||
const anchorOrigin: PopoverOrigin = {
|
||||
vertical: 'bottom',
|
||||
horizontal: 'right',
|
||||
};
|
||||
|
||||
const transferOrigin: PopoverOrigin = {
|
||||
vertical: 'top',
|
||||
horizontal: 'right',
|
||||
};
|
||||
|
||||
export default function Menu(props: MenuProps) {
|
||||
return (
|
||||
<MuiMenu
|
||||
getContentAnchorEl={null}
|
||||
anchorOrigin={anchorOrigin}
|
||||
transformOrigin={transferOrigin}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue