Skip to content

Commit

Permalink
fix(copy): remove nomad link
Browse files Browse the repository at this point in the history
(cherry picked from commit 7b2dc82)
  • Loading branch information
robertu7 committed Jan 23, 2024
1 parent 140f7ac commit 2b8af4d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 45 deletions.
3 changes: 0 additions & 3 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,6 @@
"defaultMessage": "left a comment in {circleName}",
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
},
"znJ06J": {
"defaultMessage": "<a>About Nomad Matters</a>"
},
"zvNfwL": {
"defaultMessage": "Operation too frequent, please try again later.",
"description": "ACTION_LIMIT_EXCEEDED"
Expand Down
3 changes: 0 additions & 3 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,6 @@
"defaultMessage": "left a comment in {circleName}",
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
},
"znJ06J": {
"defaultMessage": "<a>About Nomad Matters</a>"
},
"zvNfwL": {
"defaultMessage": "Operation too frequent, please try again later.",
"description": "ACTION_LIMIT_EXCEEDED"
Expand Down
3 changes: 0 additions & 3 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,6 @@
"defaultMessage": "在 {circleName} 中留言",
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
},
"znJ06J": {
"defaultMessage": "<a>关于游牧者计划</a>"
},
"zvNfwL": {
"defaultMessage": "操作过于频繁,请稍候重试",
"description": "ACTION_LIMIT_EXCEEDED"
Expand Down
3 changes: 0 additions & 3 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,6 @@
"defaultMessage": "在 {circleName} 中留言",
"description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx"
},
"znJ06J": {
"defaultMessage": "<a>關於遊牧者計畫</a>"
},
"zvNfwL": {
"defaultMessage": "操作過於頻繁,請稍候重試",
"description": "ACTION_LIMIT_EXCEEDED"
Expand Down
28 changes: 0 additions & 28 deletions src/views/User/UserProfile/BadgeNomadDialog/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useContext } from 'react'
import { FormattedMessage } from 'react-intl'

import { ReactComponent as Nomad1Background } from '@/public/static/images/badge-nomad1-background.svg'
Expand All @@ -11,10 +10,8 @@ import {
CopyToClipboard,
Dialog,
IconArrowLeft16,
LanguageContext,
useMediaQuery,
} from '~/components'
import { UserLanguage } from '~/gql/graphql'

import styles from './styles.module.css'

Expand All @@ -33,10 +30,7 @@ const BadgeNomadDialogContent = ({
isNested,
goBack,
}: BadgeNomadDialogContentProps) => {
const { lang } = useContext(LanguageContext)
const isSmUp = useMediaQuery(`(min-width: ${BREAKPOINTS.MD}px)`)
const campaignLink = process.env.NEXT_PUBLIC_NOMAD_MATTERS_CAMPAIGN_LINK
const campaignLinkEn = process.env.NEXT_PUBLIC_NOMAD_MATTERS_CAMPAIGN_LINK_EN

return (
<>
Expand Down Expand Up @@ -111,28 +105,6 @@ const BadgeNomadDialogContent = ({
/>
)}
</p>
<p className={styles.extra}>
<FormattedMessage
defaultMessage="<a>About Nomad Matters</a>"
id="znJ06J"
values={{
a: (chunks) => (
<a
href={
(lang === UserLanguage.En
? campaignLinkEn
: campaignLink) ||
campaignLink ||
''
}
target="_blank"
>
{chunks}
</a>
),
}}
/>
</p>
</Dialog.Content.Message>
</section>
</Dialog.Content>
Expand Down
5 changes: 0 additions & 5 deletions src/views/User/UserProfile/BadgeNomadDialog/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@
.title {
margin: var(--spacing-base) 0;
}

.extra {
margin-top: var(--spacing-base);
text-decoration-line: underline;
}

0 comments on commit 2b8af4d

Please sign in to comment.