Skip to content

Commit

Permalink
Merge pull request #1001 from push-protocol/addNewChanged
Browse files Browse the repository at this point in the history
Add New Changes
  • Loading branch information
corlard3y authored Feb 10, 2025
2 parents 2577c92 + c9e513b commit d469481
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/components/DocsHub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ function TechDocItem({
const baseUrl = useSiteBaseUrl();

const handleOpenLink = (e, link: { e: any; link: string }) => {
if (!link) return;

// Check if link is an absolute URL (starts with http or https)
const isAbsoluteUrl = /^https?:\/\//i.test(link);

Expand Down
18 changes: 9 additions & 9 deletions src/config/DocsHubList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,6 @@ const tx = await pushChain.tx.send(
{ category: 'MY_CUSTOM_CATEGORY', data: 'Hello world!' }
);`,
},
{
title: 'Push Reward Points',
srcref: 'rewards',
alt: 'Logo representing reward points of Push Protocol',
link: '/docs/rewards',
target: '_self',
description:
'Reward Points Program for contributors. Complete activities and earn points.',
},
{
title: 'Examples',
srcref: 'star',
Expand All @@ -105,6 +96,15 @@ const tx = await pushChain.tx.send(
description:
'Examples to showcase the power of Push Protocol’s communication stack.',
},
{
title: 'Push Reward Points',
srcref: 'rewards',
alt: 'Logo representing reward points of Push Protocol',
// link: '/docs/rewards',
// target: '_self',
description:
'Reward Points Program for contributors. Complete activities and earn points.',
},
];

export const SdkItemsList: ISdkListItem[] = [
Expand Down

0 comments on commit d469481

Please sign in to comment.