mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 12:45:55 +08:00
chore: bump toolchain & fix lint
This commit is contained in:
@@ -15,17 +15,21 @@ export interface PopoverProps extends PopoverPrimitiveProps {
|
||||
portalOptions?: PopoverPortalProps;
|
||||
contentOptions?: PopoverContentProps;
|
||||
}
|
||||
|
||||
const EMPTY_CONTENT_OPTIONS: NonNullable<PopoverProps['contentOptions']> = {};
|
||||
|
||||
export const Popover = ({
|
||||
content,
|
||||
children,
|
||||
portalOptions,
|
||||
contentOptions: {
|
||||
contentOptions,
|
||||
...props
|
||||
}: PopoverProps) => {
|
||||
const {
|
||||
className: contentClassName,
|
||||
style: contentStyle,
|
||||
...otherContentOptions
|
||||
} = {},
|
||||
...props
|
||||
}: PopoverProps) => {
|
||||
} = contentOptions ?? EMPTY_CONTENT_OPTIONS;
|
||||
return (
|
||||
<PopoverPrimitive.Root {...props}>
|
||||
<PopoverPrimitive.Trigger asChild>{children}</PopoverPrimitive.Trigger>
|
||||
|
||||
Reference in New Issue
Block a user