refactor: replace whole implementation with a state

This commit is contained in:
Ephraim Atta-Duncan
2023-09-09 10:56:45 +00:00
committed by Mythie
parent cb5df80a26
commit 1a48d194f7
2 changed files with 43 additions and 50 deletions

View File

@ -10,8 +10,6 @@ const Popover = PopoverPrimitive.Root;
const PopoverTrigger = PopoverPrimitive.Trigger;
const PopoverClose = PopoverPrimitive.Close;
const PopoverContent = React.forwardRef<
React.ElementRef<typeof PopoverPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
@ -32,4 +30,4 @@ const PopoverContent = React.forwardRef<
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
export { Popover, PopoverTrigger, PopoverContent, PopoverClose };
export { Popover, PopoverTrigger, PopoverContent };