From 8221fe4f80c9f1e975c231df544116a0e54dee52 Mon Sep 17 00:00:00 2001 From: mark-tate <143323+mark-tate@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:32:51 +0000 Subject: [PATCH] cleaned up DatePickerTrigger.tsx naming and variables --- packages/lab/src/date-picker/DatePickerTrigger.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/lab/src/date-picker/DatePickerTrigger.tsx b/packages/lab/src/date-picker/DatePickerTrigger.tsx index 8a76aab650..6b6a1e651a 100644 --- a/packages/lab/src/date-picker/DatePickerTrigger.tsx +++ b/packages/lab/src/date-picker/DatePickerTrigger.tsx @@ -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(ref, floatingUIResult?.reference); + const triggerRef = useForkRef( + ref, + floatingUIResult?.reference, + ); return (
{children}