Skip to content

Commit

Permalink
Don't rely on @trussworks/react-uswds types that are not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Mar 7, 2024
1 parent df6738f commit a9ae486
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/DetailsDropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { Button, Icon } from '@trussworks/react-uswds'
import type { ButtonProps } from '@trussworks/react-uswds/lib/components/Button/Button'
import type { ReactNode } from 'react'

export default function DetailsDropdownButton({
children,
...props
}: {
children: ReactNode
} & Omit<ButtonProps & JSX.IntrinsicElements['button'], 'type'>) {
} & Omit<Parameters<typeof Button>[0], 'type'>) {
return (
<Button type="button" {...props}>
{children}
Expand Down

0 comments on commit a9ae486

Please sign in to comment.