From 586334a1143c7338d53c38c08c96b15c1cea292d Mon Sep 17 00:00:00 2001 From: Mikyo King Date: Thu, 2 Jan 2025 19:31:54 -0700 Subject: [PATCH] Fix generic --- app/src/components/tag/TagList.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/components/tag/TagList.tsx b/app/src/components/tag/TagList.tsx index 5be3251c55..af55b806ea 100644 --- a/app/src/components/tag/TagList.tsx +++ b/app/src/components/tag/TagList.tsx @@ -9,13 +9,17 @@ const tagListCSS = css` gap: var(--ac-global-dimension-size-50); height: 28px; `; -function TagList>( +function TagList( props: TagListProps, ref: Ref ) { return ; } -const _TagList = forwardRef(TagList); +// Use forwardRef with the generic type to ensure the type propagates +const _TagList = forwardRef(TagList) as ( + props: TagListProps & { ref?: Ref } +) => JSX.Element; + export { _TagList as TagList }; export type { TagListProps };