Skip to content

Commit

Permalink
Merge pull request #1578 from IFRCGo/fix/chip-label
Browse files Browse the repository at this point in the history
Fix label type for chip component
  • Loading branch information
samshara authored Dec 16, 2024
2 parents 8a96e73 + c5a446f commit c108552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-dingos-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ifrc-go/ui": patch
---

Fix label type for chip component
4 changes: 2 additions & 2 deletions packages/ui/src/components/Chip/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback } from 'react';
import React, { useCallback } from 'react';
import { CloseFillIcon } from '@ifrc-go/icons';
import {
_cs,
Expand All @@ -22,7 +22,7 @@ const chipVariantToClassNameMap: Record<ChipVariant, string> = {
export interface Props<N> {
className?: string;
name: N;
label: string;
label: React.ReactNode;
variant?: ChipVariant;
onDelete?: (name: N, e: React.MouseEvent<HTMLButtonElement>) => void;
}
Expand Down

0 comments on commit c108552

Please sign in to comment.