Added a boolean isCommunity flag to resource to simplify adding labels
This commit is contained in:
committed by
fabioberger
parent
5e921fdd08
commit
2027b74c5f
@@ -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 Relay’s APIs',
|
||||
tags: [{ label: 'Community Maintained', isInverted: true }, { label: 'Relayer' }],
|
||||
tags: ['Api explorer', 'Relayer'],
|
||||
url: 'https://0x.org',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user