From f60ea79b859d5a2dfff3a33b98c5dc1e200ae210 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Mon, 2 Oct 2023 20:40:45 -0400 Subject: [PATCH] Pass through ButtonGroup props from DateSelectorButton This allows users of this component to set properties such as onClick. --- app/routes/circulars._index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/routes/circulars._index.tsx b/app/routes/circulars._index.tsx index 068041bdf..3afe4451f 100644 --- a/app/routes/circulars._index.tsx +++ b/app/routes/circulars._index.tsx @@ -265,15 +265,16 @@ function DateSelectorButton({ startDate, endDate, expanded, + ...props }: { startDate?: string endDate?: string expanded?: boolean -}) { +} & Omit[0], 'segmented' | 'children'>) { const slimClasses = 'height-4 padding-y-0' return ( - +