Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add solana nav bar and banner #1576

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/synapse-interface/components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react'

const BANNER_VERSION = '2'
const BANNER_VERSION = '3'

export const Banner = () => {
const [hasMounted, setHasMounted] = useState(false)
Expand Down Expand Up @@ -50,11 +50,11 @@ export const Banner = () => {
{/* TODO: replace w/ tweetlink directly */}
<a
href={
'https://twitter.com/SynapseProtocol/status/1701315115692466220'
'https://twitter.com/SynapseProtocol/status/1726659540551352387'
}
target={'_blank'}
>
Synapse Interchain Network & Synapse Chain are live on testnet.
Synapse now supports Solana at solana.synapseprotocol.com
</a>
</p>
</div>
Expand Down
6 changes: 6 additions & 0 deletions packages/synapse-interface/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
LANDING_PATH,
BRIDGE_PATH,
INTERCHAIN_LINK,
SOLANA_LINK

Check warning on line 9 in packages/synapse-interface/constants/routes.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`

Check warning on line 9 in packages/synapse-interface/constants/routes.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
} from './urls'

export interface RouteObject {
Expand Down Expand Up @@ -55,4 +56,9 @@
text: 'Interchain Network',
match: null,
},
Solana: {
path: SOLANA_LINK,
text: 'Solana Bridge',
match: null,
}

Check warning on line 63 in packages/synapse-interface/constants/routes.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`

Check warning on line 63 in packages/synapse-interface/constants/routes.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
}
6 changes: 4 additions & 2 deletions packages/synapse-interface/constants/urls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const POOL_PATH = '/pool'
export const BRIDGE_PATH = '/'
export const CONTRACTS_PATH =
'https://docs.synapseprotocol.com/reference/contract-addresses'
export const INTERCHAIN_LINK = "https://interchain.synapseprotocol.com/"
export const INTERCHAIN_LINK = 'https://interchain.synapseprotocol.com/'
export const SOLANA_LINK = 'https://solana.synapseprotocol.com/'
export const STATISTICS_PATH = '/statistics'
export const LANDING_PATH = '/landing'
export const TERMS_OF_SERVICE_PATH =
Expand Down Expand Up @@ -82,7 +83,8 @@ export const TELEGRAM_URL = 'https://t.me/synapseprotocol'
export const FORUM_URL = 'https://forum.synapseprotocol.com/'
export const TWITTER_URL = 'https://twitter.com/SynapseProtocol'

export const BUILD_ON_URL = "https://docs.synapseprotocol.com/synapse-interchain-network-sin/build-on-the-synapse-interchain-network"
export const BUILD_ON_URL =
'https://docs.synapseprotocol.com/synapse-interchain-network-sin/build-on-the-synapse-interchain-network'
export const GITHUB_URL = 'https://github.com/synapsecns'
export const MEDIUM_URL = 'https://synapseprotocol.medium.com/'
export const MIRROR_URL = 'https://synapse.mirror.xyz/'
Expand Down
Loading