Skip to content

Commit

Permalink
DAO-556 Added links (#80)
Browse files Browse the repository at this point in the history
* DAO-556 Added links

* Fixed Dapp by dApp
Freshenext authored Jul 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2cd5b14 commit 0fae2fb
Showing 3 changed files with 28 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/components/LeftSidebar/UsefulLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import { Paragraph } from '@/components/Typography/Paragraph'
import { Link } from '@/components/Link'
import { currentLinks } from '@/components/LeftSidebar/links'

export const UsefulLinks = () => (
<div>
<Paragraph className="mb-[24px] text-[16px]">Useful links</Paragraph>
<Link href="#" variant="menu" className="mb-[16px] text-[16px]">
<Link href={currentLinks.registerRns} variant="menu" className="mb-[16px] text-[16px]" target="_blank">
Register RNS Domain
</Link>
<Link href="#" variant="menu" className="mb-[16px] text-[16px]">
Token Bridge Dapp
<Link href={currentLinks.tokenBridge} variant="menu" className="mb-[16px] text-[16px]" target="_blank">
Token Bridge dApp
</Link>
<Link href="#" variant="menu" className="mb-[16px] text-[16px]">
Flyover Dapp
<Link href={currentLinks.flyover} variant="menu" className="mb-[16px] text-[16px]" target="_blank">
Flyover dApp
</Link>
<Link href="#" variant="menu" className="mb-[16px] text-[16px]">
<Link href={currentLinks.readMore} variant="menu" className="mb-[16px] text-[16px]" target="_blank">
Read more about RIF
</Link>
</div>
20 changes: 20 additions & 0 deletions src/components/LeftSidebar/links.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const testnet = {
registerRns: 'https://testnet.manager.rns.rifos.org/',
tokenBridge: 'https://testnet.tokenbridge.rsk.co/',
flyover: 'https://dapp.testnet.flyover.rif.technology/',
readMore: 'https://dev.rootstock.io/',
}

const mainnet = {
registerRns: 'https://manager.rns.rifos.org/',
tokenBridge: 'https://tokenbridge.rsk.co/',
flyover: 'https://dapp.flyover.rif.technology/',
readMore: 'https://dev.rootstock.io/',
}

const environments = {
testnet,
mainnet,
}
// @ts-ignore
export const currentLinks = environments[process.env.NEXT_PUBLIC_ENV] as typeof testnet
2 changes: 1 addition & 1 deletion src/components/Link/Link.stories.tsx
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ export const MenuInList: Story = {
</li>
<li>
<Link variant="menu" href="/home">
<Typography tagVariant="p">Token Bridge Dapp</Typography>
<Typography tagVariant="p">Token Bridge dApp</Typography>
</Link>
</li>
</ul>

0 comments on commit 0fae2fb

Please sign in to comment.