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