Fix <EntityLink /> prop types

This commit is contained in:
Sam Becker 2023-12-14 16:24:11 -06:00
parent b52d8321ca
commit a7e9e1aa52

View File

@ -4,7 +4,7 @@ import Badge from './Badge';
import { cc } from '@/utility/css';
export interface EntityLinkExternalProps {
type?: 'icon-last' | 'icon-first' | 'icon-only' | 'text-only';
type?: 'icon-last' | 'icon-first' | 'icon-only' | 'text-only'
badged?: boolean
dim?: boolean
}
@ -25,11 +25,8 @@ export default function EntityLink({
href: string
icon?: ReactNode
title?: string
type?: EntityType
badged?: boolean
hoverEntity?: ReactNode
dim?: boolean
}) {
} & EntityLinkExternalProps) {
const renderContent = () => <>
<span className="xs:hidden">
{labelSmall ?? label}