feat: add My Uploads listing with card and table views
This commit is contained in:
@@ -21,10 +21,18 @@ function PopoverContent({
|
||||
className,
|
||||
align = 'center',
|
||||
sideOffset = 4,
|
||||
container,
|
||||
...props
|
||||
}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
|
||||
}: React.ComponentProps<typeof PopoverPrimitive.Content> & {
|
||||
container?:
|
||||
| React.ComponentProps<typeof PopoverPrimitive.Portal>['container']
|
||||
| React.RefObject<HTMLElement | null>;
|
||||
}) {
|
||||
const portalContainer =
|
||||
container && 'current' in container ? container.current : container;
|
||||
|
||||
return (
|
||||
<PopoverPrimitive.Portal>
|
||||
<PopoverPrimitive.Portal container={portalContainer}>
|
||||
<PopoverPrimitive.Content
|
||||
data-slot="popover-content"
|
||||
align={align}
|
||||
|
||||
Reference in New Issue
Block a user