Skip to content

Commit

Permalink
Merge pull request #1472 from lpsinger/button-group-props
Browse files Browse the repository at this point in the history
Pass through ButtonGroup props from DateSelectorButton
  • Loading branch information
dakota002 authored Oct 3, 2023
2 parents 93fdcde + f60ea79 commit cc54e8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/routes/circulars._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,16 @@ function DateSelectorButton({
startDate,
endDate,
expanded,
...props
}: {
startDate?: string
endDate?: string
expanded?: boolean
}) {
} & Omit<Parameters<typeof ButtonGroup>[0], 'segmented' | 'children'>) {
const slimClasses = 'height-4 padding-y-0'

return (
<ButtonGroup type="segmented">
<ButtonGroup type="segmented" {...props}>
<Button type="button" className={`${slimClasses} padding-x-2`}>
{(startDate && dateSelectorLabels[startDate]) ||
(startDate && endDate && (
Expand Down

0 comments on commit cc54e8b

Please sign in to comment.