fix: missing display name

This commit is contained in:
Aslam H
2024-09-09 17:50:29 +07:00
parent 5f537d5618
commit 84ee3d0517
2 changed files with 4 additions and 1 deletions

View File

@@ -26,12 +26,16 @@ const ColumnWrapper = React.forwardRef<HTMLDivElement, ColumnWrapperProps>(
) )
) )
ColumnWrapper.displayName = "ColumnWrapper"
const ColumnText = React.forwardRef<HTMLSpanElement, ColumnTextProps>(({ children, className, ...props }, ref) => ( const ColumnText = React.forwardRef<HTMLSpanElement, ColumnTextProps>(({ children, className, ...props }, ref) => (
<span className={cn("text-left text-xs", className)} ref={ref} {...props}> <span className={cn("text-left text-xs", className)} ref={ref} {...props}>
{children} {children}
</span> </span>
)) ))
ColumnText.displayName = "ColumnText"
export const Column = { export const Column = {
Wrapper: ColumnWrapper, Wrapper: ColumnWrapper,
Text: ColumnText Text: ColumnText

View File

@@ -30,7 +30,6 @@ export const PageItem = React.forwardRef<HTMLAnchorElement, PageItemProps>(({ pa
)} )}
href={`/pages/${page.id}`} href={`/pages/${page.id}`}
role="listitem" role="listitem"
aria-selected={isActive}
> >
<div className="flex h-full items-center gap-4"> <div className="flex h-full items-center gap-4">
<Column.Wrapper style={columnStyles.title}> <Column.Wrapper style={columnStyles.title}>