Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Feb 18, 2024
1 parent cdf4852 commit dbe6101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/src/components/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import { buttonVariants } from '@/theme/variants';

export const Accordions = forwardRef<
HTMLDivElement,
Omit<AccordionSingleProps | AccordionMultipleProps, 'value' | 'onValueChange'>
| Omit<AccordionSingleProps, 'value' | 'onValueChange'>
| Omit<AccordionMultipleProps, 'value' | 'onValueChange'>
>(({ type = 'single', className, defaultValue, ...props }, ref) => {
const [value, setValue] = useState(
type === 'single' ? defaultValue ?? '' : defaultValue ?? [],
Expand Down

0 comments on commit dbe6101

Please sign in to comment.