mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 02:44:42 +12:00
fix(ExcerptText): Use resolveItemURI()
in excerpts (#9354)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
parent
3d2f4b405e
commit
79123fb260
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import type { ApiModel, Excerpt } from '@microsoft/api-extractor-model';
|
||||
import { ExcerptTokenKind } from '@microsoft/api-extractor-model';
|
||||
import { ItemLink } from './ItemLink';
|
||||
import { resolveItemURI } from './documentation/util';
|
||||
|
||||
export interface ExcerptTextProps {
|
||||
/**
|
||||
|
@ -30,7 +31,7 @@ export function ExcerptText({ model, excerpt }: ExcerptTextProps) {
|
|||
return (
|
||||
<ItemLink
|
||||
className="text-blurple"
|
||||
itemURI={`${item.displayName}:${item.kind}`}
|
||||
itemURI={resolveItemURI(item)}
|
||||
key={`${item.displayName}-${item.containerKey}`}
|
||||
packageName={item.getAssociatedPackage()?.displayName.replace('@discordjs/', '')}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue