Skip to content

Commit

Permalink
Merge pull request #4242 from thematters/develop
Browse files Browse the repository at this point in the history
Release v4.30.1
  • Loading branch information
zeckli authored Mar 22, 2024
2 parents 86b3a1f + fc51a36 commit 393b415
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matters-web",
"version": "4.30.0",
"version": "4.30.1",
"description": "codebase of Matters' website",
"author": "Matters <[email protected]>",
"engines": {
Expand Down
5 changes: 5 additions & 0 deletions src/common/enums/externalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@ export const GUIDE_LINKS = {
zh_hans: `https://matters.town/zh_Hans/@hi176/387120?locale=zh-Hans`,
en: `https://matters.town/@hi176/387120?locale=en`,
},
billboard: {
zh_hant: `https://matters.town/@hi176/554162`,
zh_hans: `https://matters.town/@hi176/554162?locale=zh-Hans`,
en: `https://matters.town/@web3/554164?locale=en`,
},
}
8 changes: 6 additions & 2 deletions src/components/Dialogs/BillboardDialog/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useContext } from 'react'
import { FormattedMessage } from 'react-intl'

import { Dialog } from '~/components/Dialog'
import { GUIDE_LINKS } from '~/common/enums'
import { Dialog, LanguageContext } from '~/components'

interface Props {
closeDialog: () => void
Expand All @@ -9,6 +11,8 @@ interface Props {
const isProd = process.env.NEXT_PUBLIC_RUNTIME_ENV === 'production'

const Content: React.FC<Props> = ({ closeDialog }) => {
const { lang } = useContext(LanguageContext)
const guideURL = GUIDE_LINKS.billboard[lang]
const billboardURL = isProd
? 'https://billboard.matters-lab.io'
: 'https://billboard-develop.matters-lab.io'
Expand All @@ -32,7 +36,7 @@ const Content: React.FC<Props> = ({ closeDialog }) => {
description="src/components/Dialogs/BillboardDialog/Content.tsx"
values={{
announcements: (
<a className="u-link-green" href="" target="_blank">
<a className="u-link-green" href={guideURL} target="_blank">
<FormattedMessage
defaultMessage="announcements"
description="src/components/Dialogs/BillboardDialog/Content.tsx"
Expand Down

0 comments on commit 393b415

Please sign in to comment.