Added a boolean isCommunity flag to resource to simplify adding labels

This commit is contained in:
Piotr Janosz
2019-07-15 16:09:04 +02:00
committed by fabioberger
parent 5e921fdd08
commit 2027b74c5f
5 changed files with 54 additions and 64 deletions

View File

@@ -19,13 +19,7 @@ export const DocsGuides: React.FC = () => {
<Filters groups={filterGroups} />
<article>
{resources.map((resource, index) => (
<Resource
key={`resource-${index}`}
heading={resource.heading}
description={resource.description}
tags={resource.tags}
url={resource.url}
/>
<Resource key={`resource-${index}`} {...resource} />
))}
</article>
</Columns>
@@ -89,14 +83,15 @@ const resources = [
heading: '0x Mesh - your gateway to networked liquidity',
description:
'Learn about the 0x peer-to-peer network for sharing orders and how you can use it to tap into networked liquidity.',
tags: [{ label: 'Relayer' }],
tags: ['Relayer'],
url: 'https://0x.org',
isCommunity: true,
},
{
heading: '0x Mesh - your gateway to networked liquidity',
description:
'The Radar Relay SDK is a software development kit that simplifies the interactions with Radar Relays APIs',
tags: [{ label: 'Community Maintained', isInverted: true }, { label: 'Relayer' }],
tags: ['Api explorer', 'Relayer'],
url: 'https://0x.org',
},
];