mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
feat(website): show inherited members (#8526)
* feat(website): show inherited members * fix: use passHref
This commit is contained in:
16
packages/website/src/components/InheritanceText.tsx
Normal file
16
packages/website/src/components/InheritanceText.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Anchor, Text } from '@mantine/core';
|
||||
import Link from 'next/link';
|
||||
import type { InheritanceData } from '~/DocModel/DocMethod';
|
||||
|
||||
export function InheritanceText({ data }: { data: InheritanceData }) {
|
||||
return (
|
||||
<Text className="font-semibold">
|
||||
{'Inherited from '}
|
||||
<Link href={data.path} passHref>
|
||||
<Anchor component="a" className="font-mono">
|
||||
{data.parentName}
|
||||
</Anchor>
|
||||
</Link>
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user