Skip to content

Commit

Permalink
fix(popover): loosen up props type (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa authored Aug 15, 2024
1 parent 4d13711 commit ba27521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/scaffolds/popover/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { usePopover } from "./use-popover";

export type PopoverProps = {
children: React.ReactNode;
} & UsePopoverReturnValue;
} & Partial<UsePopoverReturnValue>;

const Popover = ({ children, ...popoverOptions }: PopoverProps) => {
const popover = usePopover(popoverOptions);
Expand Down
4 changes: 2 additions & 2 deletions packages/react/scaffolds/popover/use-popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
useRole,
} from "@floating-ui/react";
import * as React from "react";
import type { UsePopoverReturnValue } from "./popover.types";
import type { PopoverOptions } from "./popover.types";

export const usePopover = (props: UsePopoverReturnValue) => {
export const usePopover = (props: PopoverOptions) => {
const {
modal = false,
triggerType = "hover",
Expand Down

0 comments on commit ba27521

Please sign in to comment.