mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 07:06:28 +08:00
fix: console warning
This commit is contained in:
@@ -32,11 +32,13 @@ export const TransitionsModal = (props: TransitionsModalProps) => {
|
||||
onClose={props.onClose}
|
||||
closeAfterTransition
|
||||
>
|
||||
<MuiClickAwayListener onClickAway={props.onClose}>
|
||||
<Fade in={props.open} timeout={300}>
|
||||
{props.children}
|
||||
</Fade>
|
||||
</MuiClickAwayListener>
|
||||
<div>
|
||||
<MuiClickAwayListener onClickAway={props.onClose}>
|
||||
<Fade in={props.open} timeout={300}>
|
||||
{props.children}
|
||||
</Fade>
|
||||
</MuiClickAwayListener>
|
||||
</div>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -25,8 +25,11 @@ export const placementToContainerDirection: Record<
|
||||
'auto-end': 'none',
|
||||
};
|
||||
|
||||
export const Popover = (props: PropsWithChildren<PopoverProps>) => {
|
||||
const { popoverDirection, placement, content, children, style } = props;
|
||||
export const Popover = ({
|
||||
popoverDirection,
|
||||
...props
|
||||
}: PropsWithChildren<PopoverProps>) => {
|
||||
const { placement, content, children, style } = props;
|
||||
return (
|
||||
<Popper
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user