feat: deprecation badges

This commit is contained in:
iCrawl
2022-08-18 18:47:44 +02:00
parent 7f415a2502
commit 673262d38c
4 changed files with 12 additions and 2 deletions

View File

@@ -30,6 +30,11 @@ export function MethodItem({ data }: { data: MethodResolvable }) {
<Group>
<Stack>
<Group>
{data.deprecated ? (
<Badge variant="filled" color="red">
Deprecated
</Badge>
) : null}
{data.kind === 'Method' && method.visibility === Visibility.Protected ? (
<Badge variant="filled">Protected</Badge>
) : null}