Skip to content

Commit

Permalink
feat: create a new papers page
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy committed Feb 14, 2024
1 parent 10ba1ea commit 10c8080
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/bos-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type NetworkComponents = {
dataAvailabilityPage: string;
termsPage: string;
privacyPage: string;
papersPage: string;
};
relayerDemo: string;
notificationButton: string;
Expand Down Expand Up @@ -100,6 +101,7 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
dataAvailabilityPage: `${testnetTLA}/widget/NearOrg.DataAvailabilityPage`,
termsPage: `${testnetTLA}/widget/NearOrg.TermsPage`,
privacyPage: `${testnetTLA}/widget/NearOrg.PrivacyPage`,
papersPage: `${testnetTLA}/widget/NearOrg.PapersPage`,
},
relayerDemo: 'one.testnet/widget/RelayerMessageDemo',
notificationButton: `${testnetTLA}/widget/NotificationButton`,
Expand Down Expand Up @@ -157,6 +159,7 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
dataAvailabilityPage: 'near/widget/NearOrg.DataAvailabilityPage',
termsPage: 'near/widget/NearOrg.TermsPage',
privacyPage: 'near/widget/NearOrg.PrivacyPage',
papersPage: 'near/widget/NearOrg.PapersPage',
},
relayerDemo: 'relayer-demo.near/widget/RelayerMessageDemo',
notificationButton: 'near/widget/NotificationButton',
Expand Down
21 changes: 21 additions & 0 deletions src/pages/papers/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentWrapperPage } from '@/components/near-org/ComponentWrapperPage';
import { useBosComponents } from '@/hooks/useBosComponents';
import { useDefaultLayout } from '@/hooks/useLayout';
import type { NextPageWithLayout } from '@/utils/types';

const PapersPage: NextPageWithLayout = () => {
const components = useBosComponents();
return (
<ComponentWrapperPage
src={components.nearOrg.papersPage}
meta={{
title: 'NEAR | Papers',
description: 'Join us as we dive deep into our technology.',
}}
/>
);
};

PapersPage.getLayout = useDefaultLayout;

export default PapersPage;

0 comments on commit 10c8080

Please sign in to comment.