Skip to content

Commit

Permalink
chore(website): put seperators between properties (#8576)
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni authored Sep 2, 2022
1 parent 8a91d7c commit 9b4116b
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions packages/website/src/components/PropertyList.tsx
Original file line number Diff line number Diff line change
@@ -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>
);
Expand Down

1 comment on commit 9b4116b

@vercel
Copy link

@vercel vercel bot commented on 9b4116b Sep 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.