Skip to content

Commit c108552

Browse files
authored
Merge pull request #1578 from IFRCGo/fix/chip-label
Fix label type for chip component
2 parents 8a96e73 + c5a446f commit c108552

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/cold-dingos-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ifrc-go/ui": patch
3+
---
4+
5+
Fix label type for chip component

packages/ui/src/components/Chip/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCallback } from 'react';
1+
import React, { useCallback } from 'react';
22
import { CloseFillIcon } from '@ifrc-go/icons';
33
import {
44
_cs,
@@ -22,7 +22,7 @@ const chipVariantToClassNameMap: Record<ChipVariant, string> = {
2222
export interface Props<N> {
2323
className?: string;
2424
name: N;
25-
label: string;
25+
label: React.ReactNode;
2626
variant?: ChipVariant;
2727
onDelete?: (name: N, e: React.MouseEvent<HTMLButtonElement>) => void;
2828
}

0 commit comments

Comments
 (0)