Skip to content

Commit

Permalink
cleaned up DatePickerTrigger.tsx naming and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-tate committed Nov 5, 2024
1 parent 665c97c commit 8221fe4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/lab/src/date-picker/DatePickerTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ export const DatePickerTrigger = forwardRef<
const { children, className, ...rest } = props;

const {
state: { open, floatingUIResult },
helpers: { getReferenceProps, setOpen },
state: { floatingUIResult },
helpers: { getReferenceProps },
} = useDatePickerOverlay();

const inputRef = useForkRef<HTMLDivElement>(ref, floatingUIResult?.reference);
const triggerRef = useForkRef<HTMLDivElement>(
ref,
floatingUIResult?.reference,
);

return (
<div
className={clsx(withBaseName(), className)}
ref={inputRef}
ref={triggerRef}
{...getReferenceProps(rest)}
>
{children}
Expand Down

0 comments on commit 8221fe4

Please sign in to comment.