diff --git a/lang/default.json b/lang/default.json index 4a2de3e1c1..a37ab9aee7 100644 --- a/lang/default.json +++ b/lang/default.json @@ -252,6 +252,10 @@ "4RpVDe": { "defaultMessage": "Delete Draft" }, + "4km7Yc": { + "defaultMessage": "Breaking through history! The torch you've ignited will be the most dazzling support on the Nomad's journey. The Firebolt badge signifies your participation in the Nomad Matters and earning the highest-level Firebolt badge.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "4l6vz1": { "defaultMessage": "Copy" }, @@ -444,6 +448,10 @@ "9J0iCw": { "defaultMessage": "Deleted user" }, + "9OIqBr": { + "defaultMessage": "Edit Comment", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "9UNFGm": { "defaultMessage": "Transaction Password" }, @@ -609,10 +617,6 @@ "defaultMessage": "Badges", "description": "src/components/UserProfile/index.tsx" }, - "DdVBFV": { - "defaultMessage": "Wings have sprouted on the badge, and the halo of dreams is beginning to spin. You have gathered 10 companions on the Nomad's path. Invite another 10 fellow travelers to move towards the final destination together, where the highest level of honor awaits you.", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "DjIpR6": { "defaultMessage": "Set Cover" }, @@ -735,10 +739,6 @@ "defaultMessage": "New Followers This Month", "description": "src/views/Circle/Analytics/FollowerAnalytics/index.tsx" }, - "GxTjwK": { - "defaultMessage": "Under the moonlight, dreams are about to come true. The Moonlight Dream badge signifies your participation in the Nomad Matters, whether as a contestant or a supporter of exceptional projects. Next, invite 5 companions to join the journey with you, and you'll earn an even higher-level badge?", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "H0JBH6": { "defaultMessage": "Log Out" }, @@ -904,9 +904,17 @@ "defaultMessage": "{articleCount} Articles", "description": "src/views/User/CollectionDetail/CollectionProfile/index.tsx" }, + "LUWKnn": { + "defaultMessage": "Wings have sprouted on the badge, and the halo of dreams is beginning to spin. The Nimbus Ferry badge signifies your participation in the Nomad Matters.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "LWE7oq": { "defaultMessage": "Saving draft, are you sure you want to leave?" }, + "LYl9+i": { + "defaultMessage": "Edit", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "Lb0JsC": { "defaultMessage": "You have blocked that user" }, @@ -1300,10 +1308,6 @@ "defaultMessage": "Go to Settings", "description": "src/components/Dialogs/BindEmailHintDialog/index.tsx" }, - "XfkltT": { - "defaultMessage": "The dazzling light of a meteor shower is enough to illuminate the night sky. You have already invited 5 companions to participate in the Nomad Matters. Invite 5 more, and you can continue to level up!", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "XgdZSb": { "defaultMessage": "Authors" }, @@ -1512,6 +1516,10 @@ "defaultMessage": "Income", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" }, + "dAPUJp": { + "defaultMessage": "The dazzling light of a meteor shower is enough to illuminate the night sky. The Meteor Canoe badge signifies your participation in the Nomad Matters.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "dAvP6d": { "defaultMessage": "No blocked users yet", "description": "src/views/Me/Settings/Blocked/SettingsBlocked.tsx" @@ -1640,6 +1648,10 @@ "iEJeQH": { "defaultMessage": "Liker ID" }, + "iTcMqz": { + "defaultMessage": "Under the moonlight, dreams are about to come true. The Moonlight Dream badge signifies your participation in the Nomad Matters.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "icdrwy": { "defaultMessage": "Followed You", "description": "src/components/Buttons/FollowUser/FollowState.tsx" @@ -1853,10 +1865,6 @@ "defaultMessage": "Following", "description": "src/components/UserProfile/index.tsx" }, - "p0oPHP": { - "defaultMessage": "Breaking through history! The torch you've ignited will be the most dazzling support on the Nomad's journey. Congratulations on reaching the final destination of the Nomad Matters with 20 friends and earning the highest-level Firebolt badge.", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "p5qZnJ": { "defaultMessage": "liked", "description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx" @@ -2246,9 +2254,6 @@ "defaultMessage": "left a comment in {circleName}", "description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx" }, - "znJ06J": { - "defaultMessage": "About Nomad Matters" - }, "zvNfwL": { "defaultMessage": "Operation too frequent, please try again later.", "description": "ACTION_LIMIT_EXCEEDED" diff --git a/lang/en.json b/lang/en.json index e637bed696..d40bea03c8 100644 --- a/lang/en.json +++ b/lang/en.json @@ -252,6 +252,10 @@ "4RpVDe": { "defaultMessage": "Delete Draft" }, + "4km7Yc": { + "defaultMessage": "Breaking through history! The torch you've ignited will be the most dazzling support on the Nomad's journey. The Firebolt badge signifies your participation in the Nomad Matters and earning the highest-level Firebolt badge.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "4l6vz1": { "defaultMessage": "Copy" }, @@ -444,6 +448,10 @@ "9J0iCw": { "defaultMessage": "Deleted user" }, + "9OIqBr": { + "defaultMessage": "Edit Comment", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "9UNFGm": { "defaultMessage": "Transaction Password" }, @@ -609,10 +617,6 @@ "defaultMessage": "Badges", "description": "src/components/UserProfile/index.tsx" }, - "DdVBFV": { - "defaultMessage": "Wings have sprouted on the badge, and the halo of dreams is beginning to spin. You have gathered 10 companions on the Nomad's path. Invite another 10 fellow travelers to move towards the final destination together, where the highest level of honor awaits you.", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "DjIpR6": { "defaultMessage": "Set Cover" }, @@ -735,10 +739,6 @@ "defaultMessage": "New Followers This Month", "description": "src/views/Circle/Analytics/FollowerAnalytics/index.tsx" }, - "GxTjwK": { - "defaultMessage": "Under the moonlight, dreams are about to come true. The Moonlight Dream badge signifies your participation in the Nomad Matters, whether as a contestant or a supporter of exceptional projects. Next, invite 5 companions to join the journey with you, and you'll earn an even higher-level badge?", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "H0JBH6": { "defaultMessage": "Log Out" }, @@ -904,9 +904,17 @@ "defaultMessage": "{articleCount} Articles", "description": "src/views/User/CollectionDetail/CollectionProfile/index.tsx" }, + "LUWKnn": { + "defaultMessage": "Wings have sprouted on the badge, and the halo of dreams is beginning to spin. The Nimbus Ferry badge signifies your participation in the Nomad Matters.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "LWE7oq": { "defaultMessage": "Saving draft, are you sure you want to leave?" }, + "LYl9+i": { + "defaultMessage": "Edit", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "Lb0JsC": { "defaultMessage": "You have blocked that user" }, @@ -1300,10 +1308,6 @@ "defaultMessage": "Go to Settings", "description": "src/components/Dialogs/BindEmailHintDialog/index.tsx" }, - "XfkltT": { - "defaultMessage": "The dazzling light of a meteor shower is enough to illuminate the night sky. You have already invited 5 companions to participate in the Nomad Matters. Invite 5 more, and you can continue to level up!", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "XgdZSb": { "defaultMessage": "Authors" }, @@ -1512,6 +1516,10 @@ "defaultMessage": "Income", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" }, + "dAPUJp": { + "defaultMessage": "The dazzling light of a meteor shower is enough to illuminate the night sky. The Meteor Canoe badge signifies your participation in the Nomad Matters.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "dAvP6d": { "defaultMessage": "No blocked users yet", "description": "src/views/Me/Settings/Blocked/SettingsBlocked.tsx" @@ -1640,6 +1648,10 @@ "iEJeQH": { "defaultMessage": "Liker ID" }, + "iTcMqz": { + "defaultMessage": "Under the moonlight, dreams are about to come true. The Moonlight Dream badge signifies your participation in the Nomad Matters.", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "icdrwy": { "defaultMessage": "Followed You", "description": "src/components/Buttons/FollowUser/FollowState.tsx" @@ -1853,10 +1865,6 @@ "defaultMessage": "Following", "description": "src/components/UserProfile/index.tsx" }, - "p0oPHP": { - "defaultMessage": "Breaking through history! The torch you've ignited will be the most dazzling support on the Nomad's journey. Congratulations on reaching the final destination of the Nomad Matters with 20 friends and earning the highest-level Firebolt badge.", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "p5qZnJ": { "defaultMessage": "liked", "description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx" @@ -2246,9 +2254,6 @@ "defaultMessage": "left a comment in {circleName}", "description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx" }, - "znJ06J": { - "defaultMessage": "About Nomad Matters" - }, "zvNfwL": { "defaultMessage": "Operation too frequent, please try again later.", "description": "ACTION_LIMIT_EXCEEDED" diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index 5149a529ee..b004b99541 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -252,6 +252,10 @@ "4RpVDe": { "defaultMessage": "刪除草稿" }, + "4km7Yc": { + "defaultMessage": "突破历史!你点燃的火炬是游牧者路途上最耀眼的支持。火闪电徽章纪念你曾参与「游牧者计划」并达到最高等级。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "4l6vz1": { "defaultMessage": "复制" }, @@ -444,6 +448,10 @@ "9J0iCw": { "defaultMessage": "已注销用户" }, + "9OIqBr": { + "defaultMessage": "编辑评论", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "9UNFGm": { "defaultMessage": "交易密码" }, @@ -609,10 +617,6 @@ "defaultMessage": "徽章", "description": "src/components/UserProfile/index.tsx" }, - "DdVBFV": { - "defaultMessage": "徽章长出了羽翼,梦想的光轮正开始转动,你已在游牧者之路聚集了 10 位伙伴。再邀请 10 位同行者,一起迈向终点站,最高等级的荣誉正在等着你。", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "DjIpR6": { "defaultMessage": "设置封面" }, @@ -735,10 +739,6 @@ "defaultMessage": "本月新增追踪人数", "description": "src/views/Circle/Analytics/FollowerAnalytics/index.tsx" }, - "GxTjwK": { - "defaultMessage": "月色之下梦想即将实现,月之梦徽章代表你参与了游牧者计划(参赛或支持了优质计划)。接下来邀请 5 位伙伴一同踏上旅程,将获得更高等级的徽章。", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "H0JBH6": { "defaultMessage": "登出" }, @@ -904,9 +904,17 @@ "defaultMessage": "{articleCount} 篇文章", "description": "src/views/User/CollectionDetail/CollectionProfile/index.tsx" }, + "LUWKnn": { + "defaultMessage": "徽章长出了羽翼,梦想的光轮正开始转动。光轮号徽章纪念你曾参与「游牧者计划」。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "LWE7oq": { "defaultMessage": "草稿保存中,确定要离开吗?" }, + "LYl9+i": { + "defaultMessage": "编辑", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "Lb0JsC": { "defaultMessage": "你屏蔽了该用户" }, @@ -1300,10 +1308,6 @@ "defaultMessage": "去绑定", "description": "src/components/Dialogs/BindEmailHintDialog/index.tsx" }, - "XfkltT": { - "defaultMessage": "流星雨的绚烂光芒足以点亮夜空,你已经邀请了 5 位伙伴关注游牧者计划,再邀请 5 位就能继续升级!", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "XgdZSb": { "defaultMessage": "值得关注" }, @@ -1512,6 +1516,10 @@ "defaultMessage": "营收", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" }, + "dAPUJp": { + "defaultMessage": "流星雨的绚烂光芒足以点亮夜空。流星号徽章纪念你曾参与「游牧者计划」。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "dAvP6d": { "defaultMessage": "尚无屏蔽记录", "description": "src/views/Me/Settings/Blocked/SettingsBlocked.tsx" @@ -1640,6 +1648,10 @@ "iEJeQH": { "defaultMessage": "设置 Liker ID" }, + "iTcMqz": { + "defaultMessage": "月色之下,梦想即将实现。月之梦徽章纪念你曾参与「游牧者计划」。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "icdrwy": { "defaultMessage": "追踪了你", "description": "src/components/Buttons/FollowUser/FollowState.tsx" @@ -1853,10 +1865,6 @@ "defaultMessage": "追踪中", "description": "src/components/UserProfile/index.tsx" }, - "p0oPHP": { - "defaultMessage": "突破历史!你点燃的火炬将是游牧者路途上最耀眼的支持。恭喜你与 20 位好友一同抵达游牧者计画的终点,并获得最高等级火闪电徽章。", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "p5qZnJ": { "defaultMessage": "赞赏了", "description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx" @@ -2246,9 +2254,6 @@ "defaultMessage": "在 {circleName} 中留言", "description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx" }, - "znJ06J": { - "defaultMessage": "关于游牧者计划" - }, "zvNfwL": { "defaultMessage": "操作过于频繁,请稍候重试", "description": "ACTION_LIMIT_EXCEEDED" diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index db795fbdd1..69ba0cf491 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -252,6 +252,10 @@ "4RpVDe": { "defaultMessage": "刪除草稿" }, + "4km7Yc": { + "defaultMessage": "突破歷史!你點燃的火炬是遊牧者路途上最耀眼的支持。火閃電徽章紀念你曾參與「遊牧者計畫」並達到最高等級。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "4l6vz1": { "defaultMessage": "複製" }, @@ -444,6 +448,10 @@ "9J0iCw": { "defaultMessage": "已註銷用戶" }, + "9OIqBr": { + "defaultMessage": "編輯評論", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "9UNFGm": { "defaultMessage": "交易密碼" }, @@ -609,10 +617,6 @@ "defaultMessage": "徽章", "description": "src/components/UserProfile/index.tsx" }, - "DdVBFV": { - "defaultMessage": "徽章長出了羽翼,夢想的光輪正開始轉動,你已在遊牧者之路聚集了 10 位夥伴。再邀請 10 位同行者,一起邁向終點站,最高等級的榮譽正在等著你。", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "DjIpR6": { "defaultMessage": "設置封面" }, @@ -735,10 +739,6 @@ "defaultMessage": "本月新增追蹤人數", "description": "src/views/Circle/Analytics/FollowerAnalytics/index.tsx" }, - "GxTjwK": { - "defaultMessage": "月色之下夢想即將實現,月之夢徽章代表你參與了遊牧者計畫(參賽或支持了優質計畫)。接下來邀請 5 位夥伴一同踏上旅程,將獲得更高等級的徽章。", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "H0JBH6": { "defaultMessage": "登出" }, @@ -904,9 +904,17 @@ "defaultMessage": "{articleCount} 篇文章", "description": "src/views/User/CollectionDetail/CollectionProfile/index.tsx" }, + "LUWKnn": { + "defaultMessage": "徽章長出了羽翼,夢想的光輪正開始轉動。光輪號徽章紀念你曾參與「遊牧者計畫」。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "LWE7oq": { "defaultMessage": "草稿保存中,確定要離開嗎?" }, + "LYl9+i": { + "defaultMessage": "編輯", + "description": "src/components/Comment/DropdownActions/index.tsx" + }, "Lb0JsC": { "defaultMessage": "你封鎖了該用戶" }, @@ -1300,10 +1308,6 @@ "defaultMessage": "去綁定", "description": "src/components/Dialogs/BindEmailHintDialog/index.tsx" }, - "XfkltT": { - "defaultMessage": "流星雨的絢爛光芒足以點亮夜空,你已經邀請了 5 位夥伴關注遊牧者計畫,再邀請 5 位就能繼續升級!", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "XgdZSb": { "defaultMessage": "值得關注" }, @@ -1512,6 +1516,10 @@ "defaultMessage": "營收", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" }, + "dAPUJp": { + "defaultMessage": "流星雨的絢爛光芒足以點亮夜空。流星號徽章紀念你曾參與「遊牧者計畫」。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "dAvP6d": { "defaultMessage": "尚無封鎖紀錄", "description": "src/views/Me/Settings/Blocked/SettingsBlocked.tsx" @@ -1640,6 +1648,10 @@ "iEJeQH": { "defaultMessage": "設置 Liker ID" }, + "iTcMqz": { + "defaultMessage": "月色之下,夢想即將實現。月之夢徽章紀念你曾參與「遊牧者計畫」。", + "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" + }, "icdrwy": { "defaultMessage": "追蹤了你", "description": "src/components/Buttons/FollowUser/FollowState.tsx" @@ -1853,10 +1865,6 @@ "defaultMessage": "追蹤中", "description": "src/components/UserProfile/index.tsx" }, - "p0oPHP": { - "defaultMessage": "突破歷史!你點燃的火炬將是遊牧者路途上最耀眼的支持。恭喜你與 20 位好友一同抵達遊牧者計畫的終點,並獲得最高等級火閃電徽章。", - "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" - }, "p5qZnJ": { "defaultMessage": "讚賞了", "description": "src/components/Notice/ArticleNotice/ArticleNewAppreciationNotice.tsx" @@ -2246,9 +2254,6 @@ "defaultMessage": "在 {circleName} 中留言", "description": "src/components/Notice/CircleNotice/CircleNewDiscussionComments.tsx" }, - "znJ06J": { - "defaultMessage": "關於遊牧者計畫" - }, "zvNfwL": { "defaultMessage": "操作過於頻繁,請稍候重試", "description": "ACTION_LIMIT_EXCEEDED" diff --git a/package.json b/package.json index 0bf0f791e8..901ce7eb77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matters-web", - "version": "4.28.6", + "version": "4.28.7", "description": "codebase of Matters' website", "author": "Matters ", "engines": { diff --git a/src/common/enums/text.ts b/src/common/enums/text.ts index 919ad8bdd8..a5d387bcc4 100644 --- a/src/common/enums/text.ts +++ b/src/common/enums/text.ts @@ -47,7 +47,6 @@ export const TEXT = { edit: '編輯', editArticle: '修訂作品', editCircle: '編輯圍爐', - editComment: '編輯評論', editTag: '編輯標籤', email: '電子信箱', emptySearchResults: '不好意思,什麼都沒搜到', @@ -268,7 +267,6 @@ export const TEXT = { edit: '编辑', editArticle: '修订作品', editCircle: '编辑围炉', - editComment: '编辑评论', editTag: '编辑标签', email: '邮箱', emptySearchResults: '不好意思,什么都没搜到', @@ -497,7 +495,6 @@ export const TEXT = { edit: 'Edit', editArticle: 'Edit', editCircle: 'Edit', - editComment: 'Edit', editTag: 'Edit', email: 'Email', emptySearchResults: 'Result not found', diff --git a/src/common/styles/vendors/tippy.css b/src/common/styles/vendors/tippy.css index e8dcaf9d0b..d14b2fd657 100644 --- a/src/common/styles/vendors/tippy.css +++ b/src/common/styles/vendors/tippy.css @@ -133,7 +133,7 @@ line-height: inherit; color: inherit; text-align: center; - background: var(--color-white); + background: transparent; border-radius: 0; } diff --git a/src/components/Comment/DropdownActions/index.tsx b/src/components/Comment/DropdownActions/index.tsx index 453bbd6a17..bcb220ed48 100644 --- a/src/components/Comment/DropdownActions/index.tsx +++ b/src/components/Comment/DropdownActions/index.tsx @@ -240,7 +240,19 @@ const DropdownActions = (props: DropdownActionsProps) => { type, commentId: comment.id, defaultContent: comment.content, - title: article ? 'editComment' : 'edit', + title: article ? ( + + ) : ( + + ), }, ({ openDialog }) => { return { diff --git a/src/components/Editor/Article/extensions/mention/suggestion.ts b/src/components/Editor/Article/extensions/mention/suggestion.ts index 7c53e67b4b..947e356717 100644 --- a/src/components/Editor/Article/extensions/mention/suggestion.ts +++ b/src/components/Editor/Article/extensions/mention/suggestion.ts @@ -69,7 +69,7 @@ export const makeMentionSuggestion = ({ popup = tippy('body', { getReferenceClientRect: props.clientRect, - appendTo: () => document.querySelector('#editor') || document.body, + appendTo: () => document.body, content: component.element, showOnCreate: true, interactive: true, diff --git a/src/views/User/UserProfile/BadgeNomadDialog/Content.tsx b/src/views/User/UserProfile/BadgeNomadDialog/Content.tsx index 9897b0e819..9a6addbd98 100644 --- a/src/views/User/UserProfile/BadgeNomadDialog/Content.tsx +++ b/src/views/User/UserProfile/BadgeNomadDialog/Content.tsx @@ -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' @@ -11,10 +10,8 @@ import { CopyToClipboard, Dialog, IconArrowLeft16, - LanguageContext, useMediaQuery, } from '~/components' -import { UserLanguage } from '~/gql/graphql' import styles from './styles.module.css' @@ -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 ( <> @@ -87,52 +81,30 @@ const BadgeNomadDialogContent = ({

{nomadBadgeLevel === 4 ? ( ) : nomadBadgeLevel === 3 ? ( ) : nomadBadgeLevel === 2 ? ( ) : ( )}

-

- ( - - {chunks} - - ), - }} - /> -

diff --git a/src/views/User/UserProfile/BadgeNomadDialog/styles.module.css b/src/views/User/UserProfile/BadgeNomadDialog/styles.module.css index 7dbe67cfbf..3585fb9062 100644 --- a/src/views/User/UserProfile/BadgeNomadDialog/styles.module.css +++ b/src/views/User/UserProfile/BadgeNomadDialog/styles.module.css @@ -17,8 +17,3 @@ .title { margin: var(--spacing-base) 0; } - -.extra { - margin-top: var(--spacing-base); - text-decoration-line: underline; -}