chore(website): put seperators between properties (#8576)

This commit is contained in:
Suneet Tipirneni
2022-09-02 11:20:57 -04:00
committed by GitHub
parent 8a91d7c256
commit 9b4116b659

View File

@@ -1,22 +1,25 @@
import type { ApiPropertyItemJSON } from '@discordjs/api-extractor-utils';
import { Stack } from '@mantine/core';
import { Divider, Stack } from '@mantine/core';
import { Fragment } from 'react';
import { CodeListing } from './CodeListing';
export function PropertyList({ data }: { data: ApiPropertyItemJSON[] }) {
return (
<Stack>
{data.map((prop) => (
<CodeListing
key={prop.name}
name={prop.name}
typeTokens={prop.propertyTypeTokens}
readonly={prop.readonly}
optional={prop.optional}
summary={prop.summary}
comment={prop.comment}
deprecation={prop.deprecated}
inheritanceData={prop.inheritanceData}
/>
<Fragment key={prop.name}>
<CodeListing
name={prop.name}
typeTokens={prop.propertyTypeTokens}
readonly={prop.readonly}
optional={prop.optional}
summary={prop.summary}
comment={prop.comment}
deprecation={prop.deprecated}
inheritanceData={prop.inheritanceData}
/>
<Divider size="md" />
</Fragment>
))}
</Stack>
);