Skip to content

Commit

Permalink
Merge pull request #452 from deltaDAO/enhancement/dev-preview-warning
Browse files Browse the repository at this point in the history
enhancement: dev preview warning
  • Loading branch information
moritzkirstein authored Oct 23, 2023
2 parents 3d1e72a + 8fcf632 commit b81283e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion content/pages/home/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"title": "The Gaia-X Web3 Ecosystem on DLT",
"body": "The principle of decentralization is a perfect fit for **Distributed Ledger Technology**. [Ocean Protocol](https://oceanprotocol.com) is a fully open-source technology stack, leveraging DLT and decentralization, aiming to give control back to the owners of data services. Pontus-X is built on top of Ocean Protocol showcasing how the Gaia-X Web3 Ecosystem on DLT and Ocean Protocol can look like, already today.",
"cta": "Learn More",
"ctaTo": "https://docs.genx.minimal-gaia-x.eu/docs/Community/Introduction",
"ctaTo": "https://docs.pontus-x.eu/docs/Community/Introduction",
"image": "/images/genx_validators.webp"
},
{
Expand Down
4 changes: 2 additions & 2 deletions content/site.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"siteTitle": "Pontus-X - Gaia-X Web3 Ecosystem",
"siteTagline": "A platform to find, publish and consume Service Offerings in the Gaia-X Test Network.",
"siteUrl": "https://portal.minimal-gaia-x.eu",
"siteUrl": "https://portal.pontus-x.eu",
"siteImage": "/share.png",
"copyright": "All Rights Reserved. Powered by [Ocean Protocol](https://oceanprotocol.com). Built by [deltaDAO](https://delta-dao.com).",
"menu": [
Expand Down Expand Up @@ -68,7 +68,7 @@
}
],
"announcement": "",
"devPreviewAnnouncement": "You are visiting the Pontus-X Developer Preview. Please note that some functionalities are in beta and may not work as expected. Visit the [Pontus-X portal](https://pontus-x.eu) instead.",
"devPreviewAnnouncement": "You are visiting the SITE-TITLE-PLACEHOLDER Developer Preview. Please note that some functionalities are in beta and may not work as expected. Visit the [SITE-TITLE-PLACEHOLDER portal](SITE-LINK-PLACEHOLDER) instead.",
"warning": {
"ctd": "Please note that Compute-to-Data is still in alpha phase."
},
Expand Down
2 changes: 1 addition & 1 deletion src/@utils/wallet/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const genx = {
blockExplorers: {
default: {
name: 'GEN-X Testnet Explorer',
url: 'https://explorer.genx.minimal-gaia-x.eu'
url: 'https://explorer.pontus-x.eu'
}
}
} as Chain
Expand Down
9 changes: 7 additions & 2 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ export default function App({
const { address } = useAccount()
const { isInPurgatory, purgatoryData } = useAccountPurgatory(address)

const devPreviewAnnouncementText =
siteContent?.devPreviewAnnouncement
?.replaceAll('SITE-TITLE-PLACEHOLDER', siteContent.siteTitle)
?.replaceAll('SITE-LINK-PLACEHOLDER', siteContent.siteUrl) || ''

return (
<div className={styles.app}>
{siteContent?.announcement !== '' && (
<AnnouncementBanner text={siteContent?.announcement} />
)}
{appConfig.showPreviewAlert === 'true' &&
siteContent?.devPreviewAnnouncement !== '' && (
<AnnouncementBanner text={siteContent?.devPreviewAnnouncement} />
devPreviewAnnouncementText !== '' && (
<AnnouncementBanner text={devPreviewAnnouncementText} />
)}
<Header />

Expand Down

0 comments on commit b81283e

Please sign in to comment.