diff --git a/lang/default.json b/lang/default.json index 8d438854ed..b1b266c2af 100644 --- a/lang/default.json +++ b/lang/default.json @@ -49,6 +49,9 @@ "defaultMessage": "Last 1 month", "description": "src/views/Me/Analytics/SelectPeriod/index.tsx" }, + "/GCoTA": { + "defaultMessage": "Clear" + }, "/GyMKa": { "defaultMessage": "Share Article" }, @@ -1182,6 +1185,9 @@ "defaultMessage": "Tags added", "description": "src/views/TagDetail/DropdownActions/index.tsx" }, + "Up5U7K": { + "defaultMessage": "Block" + }, "V5OMr4": { "defaultMessage": "What is a digital wallet?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" diff --git a/lang/en.json b/lang/en.json index bbe333bc3a..30ee492784 100644 --- a/lang/en.json +++ b/lang/en.json @@ -49,6 +49,9 @@ "defaultMessage": "Last 1 month", "description": "src/views/Me/Analytics/SelectPeriod/index.tsx" }, + "/GCoTA": { + "defaultMessage": "Clear" + }, "/GyMKa": { "defaultMessage": "Share Article" }, @@ -1182,6 +1185,9 @@ "defaultMessage": "Tags added", "description": "src/views/TagDetail/DropdownActions/index.tsx" }, + "Up5U7K": { + "defaultMessage": "Block" + }, "V5OMr4": { "defaultMessage": "What is a digital wallet?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index 91a4e6ed43..0fba5d62dc 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -49,6 +49,9 @@ "defaultMessage": "最近 1 个月", "description": "src/views/Me/Analytics/SelectPeriod/index.tsx" }, + "/GCoTA": { + "defaultMessage": "清空" + }, "/GyMKa": { "defaultMessage": "分享作品" }, @@ -1182,6 +1185,9 @@ "defaultMessage": "作品已添加标签", "description": "src/views/TagDetail/DropdownActions/index.tsx" }, + "Up5U7K": { + "defaultMessage": "屏蔽" + }, "V5OMr4": { "defaultMessage": "什么是数字钱包?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index 395cc4cdf9..f5d7b6c376 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -49,6 +49,9 @@ "defaultMessage": "最近 1 個月", "description": "src/views/Me/Analytics/SelectPeriod/index.tsx" }, + "/GCoTA": { + "defaultMessage": "清空" + }, "/GyMKa": { "defaultMessage": "分享作品" }, @@ -1182,6 +1185,9 @@ "defaultMessage": "作品已添加標籤", "description": "src/views/TagDetail/DropdownActions/index.tsx" }, + "Up5U7K": { + "defaultMessage": "封鎖" + }, "V5OMr4": { "defaultMessage": "什麼是數字錢包?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" diff --git a/package.json b/package.json index 62a6f3a1ca..cf2746881a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matters-web", - "version": "4.28.4", + "version": "4.28.5", "description": "codebase of Matters' website", "author": "Matters ", "engines": { diff --git a/src/common/enums/text.ts b/src/common/enums/text.ts index b19eb8738b..b906c606c0 100644 --- a/src/common/enums/text.ts +++ b/src/common/enums/text.ts @@ -3,21 +3,13 @@ export type TextId = keyof typeof TEXT.zh_hant export const TEXT = { zh_hant: { about: '關於我們', - accountArchived: '已註銷用戶', - accountBanned: '已禁言用戶', - accountFrozen: '已凍結用戶', - addArticleTag: '添加作品', addedArticleCircle: '作品已添加至圍爐', - addedArticleTag: '作品已添加標籤', addToCircle: '加入圍爐', agree: '同意', agreeAndContinue: '同意並繼續', all: '全部', - allIcymi: '不要錯過', allowResponses: '開啟回應', allowResponsesHint: '允許讀者回應本文(開啟後無法關閉)', - allTags: '全部標籤', - allTopics: '熱議廣場', likesReceived: '讚賞我的', likesSent: '我讚賞的', article: '作品', @@ -25,23 +17,8 @@ export const TEXT = { articleBanned: '作品因違反社區約章被封存', articleFingerprint: '作品指紋', articleResponse: '回應設置', - back: '返回', - backToAll: '返回全部', - block: '封鎖', - blockUser: '封鎖用戶', bookmark: '收藏', - bugBountyProgram: '漏洞賞金計畫', callbackClose: '請回到原頁面繼續操作', - cancel: '取消', - change: '修改', - changeEmail: '修改電子信箱', - changePassword: '修改密碼', - changeUserName: '修改 Matters ID', - circleBroadcast: '廣播', - circleCreated: '圍爐創建成功', - circleDiscussion: '衆聊', - clear: '清空', - close: '關閉', collectedOnly: '只看衍生作品', community: '社區共建基地', confirm: '確認', @@ -91,52 +68,27 @@ export const TEXT = { extend: '關聯', collectArticle: '關聯作品', failureChange: '修改失敗,請稍候重試', - failureCopy: '複製失敗', - failureLogout: '登出失敗,請重試', failureDonation: '支持失敗', failurePublish: '發布失敗', failureUploadImage: '圖片上傳失敗', featuredComments: '社區精選', fiatCurrency: '法幣', follow: '追蹤', - followAuthor: '追蹤創作者', followed: '已追蹤', follower: '追蹤者', following: '追蹤中', - followingMe: '追蹤我的', forgetPassword: '忘記密碼', - frequentSearch: '熱門搜尋', - guide: '玩轉 Matters 實用指南', hasSupportedArticle: '個人支持過作品', help: '說明', - helpCenter: '幫助中心', - hintAddTag: - '通過添加標籤幫助讀者更好地找到你的作品。如果沒有合適的標籤,你可以創建新的。', hintAddRecommendedTag: '近期使用', - hintAddTagNamingRestriction: - '標籤名稱不允許標點符號,字間僅允許一個不連續空白,最大長度 50 字元', - hintAddCircleInvitee: '添加站內或站外朋友加入圍爐', - hintCircleAddArticles: '將作品加入圍爐,讓更多人一起參與討論', - hintCircleDisplayName: '2-12 個字元', hintCircleName: '2-20 個字元,僅支持英文小寫字母、數字或下劃線', - hintDescription: '建議 50 字以內,最長 200 字', - hintDisplayName: '2-20 個字元', hintPassword: '至少 8 個字元,支持英文大小寫字母、數字和特殊符號', hintPaymentPassword: '輸入六位數字交易密碼', hintPaymentPointer: '錢包地址以“$”開頭', - hintTerm: '我們的用戶協議和隱私政策發生了更改,請閱讀並同意後繼續使用。', - hintUserName: '4-15 個字元,僅支持英文小寫字母、數字或下劃線', hintVerificationCode: '驗證碼有效期 20 分鐘', - history: '足跡', - hkd: '港幣', hottest: '熱門', - hottestArticles: '熱門作品', invalidEmail: '請填寫有效郵件地址', - invalidUserName: 'Matters ID 不一致', - joinCivicLiker: '成為讚賞公民,每月贊助創作者', latest: '最新', - lately: '最近', - latestArticles: '最新作品', latestResponses: '最新回應', license: '版權聲明', linkEns: '關聯 ENS 名後,可以', @@ -145,41 +97,17 @@ export const TEXT = { logbook: '航行日誌', logbook2LaunchText: 'Logbook 2.0 剛剛推出。如果你是 Traveloggers 的所有者,且尚未領取,你可以從新的日誌頁面領取:', - myNFTCollections: '我的 NFT 收藏', moreEnsInfo: '更多 ENS 資訊請參考', login: '登入', - authEntries: '進入', - authMethod: '選擇進入方式', - successLinkWallet: '綁定成功', - supportSettingHint: '最長 140 字', - loginPassword: '登入密碼', logout: '登出', members: '成員', - migrationSideBar: '一鍵搬家', month: '月', - moreActions: '更多操作', - mutualFollowing: '互相追蹤', - myAppreciations: '我的讚賞', - myBookmarks: '我的收藏', - myCircle: '我的圍爐', - myDrafts: '我的草稿', - myFollowees: '我追蹤的', myPage: '我的', - myProfile: '個人主頁', - myWallet: '我的錢包', - newPassword: '新密碼', - nextStep: '下一步', - noArticlesYet: '尚未發布作品', - noTagsUsageYet: '還沒有使用標簽創作', notifications: '通知', - openCommunity: '開放社區', password: '密碼', passwordAgain: '再次輸入密碼', - passwordHint: '至少 8 個字元,支持英文大小寫字母、數字和特殊符號', passwordNotMatch: '密碼不一致', pay: '支付', - pinArticleComment: '喜歡回應', - pinCircleComment: '置頂', pinned: '置頂', previousStep: '上一步', publish: '發布', @@ -272,12 +200,9 @@ export const TEXT = { topic: '話題', topUp: '儲值', toYourIPNSPage: '指向到你的 IPNS 頁面', - unblockUser: '取消封鎖', understood: '我知道了', unfollow: '取消追蹤', unknownAddress: '你似乎遨遊到了一個未知空間,請返回重試', - unpinArticleComment: '取消精選', - unpinCircleComment: '取消置頂', unpinArticle: '取消置頂', untitle: '未命名', uploadCover: '上傳封面', @@ -301,21 +226,13 @@ export const TEXT = { }, zh_hans: { about: '关于我们', - accountArchived: '已注销用户', - accountBanned: '已禁言用户', - accountFrozen: '已冻结用户', - addArticleTag: '添加作品', addedArticleCircle: '作品已添加至围炉', - addedArticleTag: '作品已添加标签', addToCircle: '加入围炉', agree: '同意', agreeAndContinue: '同意并继续', all: '全部', - allIcymi: '不要错过', allowResponses: '开启回应', allowResponsesHint: '允许读者回应本文(开启后无法关闭)', - allTags: '全部标签', - allTopics: '热议广场', likesReceived: '赞赏我的', likesSent: '我赞赏的', article: '作品', @@ -323,23 +240,8 @@ export const TEXT = { articleBanned: '作品因违反社区约章被歸檔', articleFingerprint: '作品指纹', articleResponse: '回应设置', - back: '返回', - backToAll: '返回全部', - block: '屏蔽', - blockUser: '屏蔽用户', bookmark: '收藏', - bugBountyProgram: '漏洞赏金计划', callbackClose: '请回到原页面继续操作', - cancel: '取消', - change: '修改', - changeEmail: '修改邮箱', - changePassword: '修改密码', - changeUserName: '修改 Matters ID', - circleBroadcast: '广播', - circleCreated: '围炉创建成功', - circleDiscussion: '众聊', - clear: '清空', - close: '关闭', collectedOnly: '只看衍生作品', community: '社区共建基地', confirm: '确认', @@ -389,52 +291,27 @@ export const TEXT = { extend: '关联', collectArticle: '关联作品', failureChange: '修改失败,请稍候重试', - failureCopy: '复制失败', - failureLogout: '登出失败,再来一次', failureDonation: '支持失败', failurePublish: '发布失败', failureUploadImage: '图片上传失败', featuredComments: '社区精选', fiatCurrency: '法币', follow: '追踪', - followAuthor: '追踪创作者', followed: '已追踪', follower: '追踪者', following: '追踪中', - followingMe: '追踪我的', forgetPassword: '忘记密码', - frequentSearch: '热门搜索', - guide: '玩转 Matters 实用指南', hasSupportedArticle: '个人支持过作品', help: '说明', - helpCenter: '帮助中心', - hintAddTag: - '通过添加标签帮助读者更好地找到你的作品。如果没有合适的标签,你可以创建新的。', hintAddRecommendedTag: '最近使用', - hintAddTagNamingRestriction: - '标签名称不允许标点符号,字间仅允许一个不连续空白,最大长度 50 字元', - hintAddCircleInvitee: '添加站内或站外朋友加入围炉', - hintCircleAddArticles: '将作品加入围炉,让更多人一起参与讨论', - hintCircleDisplayName: '2-12 个字符', hintCircleName: '2-20 个字符,仅支持英文小写字母、数字或下划线', - hintDescription: '建议 50 字以内,最长 200 字', - hintDisplayName: '2-20 个字符', hintPassword: '至少 8 个字符,支持英文大小写字母、数字和特殊符号', hintPaymentPassword: '输入六位数字交易密码', hintPaymentPointer: '钱包地址以“$”开头', - hintTerm: '我们的用户协议和隐私政策发生了更改,请阅读并同意后继续使用。', - hintUserName: '4-15 个字符,仅支持英文小写字母、数字或下划线', hintVerificationCode: '验证码有效期 20 分钟', - history: '足迹', - hkd: '港币', hottest: '热门', - hottestArticles: '热门作品', invalidEmail: '请填写有效邮箱', - invalidUserName: 'Matters ID 不一致', - joinCivicLiker: '成为赞赏公民,每月赞助创作者', latest: '最新', - lately: '最近', - latestArticles: '最新作品', latestResponses: '最新回应', license: '版权声明', linkEns: '关联 ENS 名后,可以:', @@ -443,41 +320,17 @@ export const TEXT = { logbook: '航行日志', logbook2LaunchText: 'Logbook 2.0 刚刚推出。如果你是 Traveloggers 的所有者,且尚未领取,你可以从新的日志页面领取:', - myNFTCollections: '我的 NFT 收藏', moreEnsInfo: '更多 ENS 资讯请参考', login: '登入', - authEntries: '进入', - authMethod: '选择进入方式', - successLinkWallet: '绑定成功', - supportSettingHint: '最长 140 字', - loginPassword: '登入密码', logout: '登出', members: '成员', - migrationSideBar: '一鍵搬家', month: '月', - moreActions: '更多操作', - mutualFollowing: '互相追踪', - myAppreciations: '我的赞赏', - myBookmarks: '我的收藏', - myCircle: '我的围炉', - myDrafts: '我的草稿', - myFollowees: '我追踪的', myPage: '我的', - myProfile: '个人主页', - myWallet: '我的钱包', - newPassword: '新密码', - nextStep: '下一步', - noArticlesYet: '尚未发布作品', - noTagsUsageYet: '还没有使用标签创作', notifications: '通知', - openCommunity: '开放社区', password: '密码', passwordAgain: '再次输入密码', - passwordHint: '至少 8 位,支持英文大小写字母、数字和特殊符号', passwordNotMatch: '密码不一致', pay: '支付', - pinArticleComment: '喜欢回应', - pinCircleComment: '置顶', pinned: '置顶', previousStep: '上一步', publish: '发布', @@ -570,12 +423,9 @@ export const TEXT = { topic: '话题', topUp: '储值', toYourIPNSPage: '指向到你的 IPNS 页面', - unblockUser: '取消屏蔽', understood: '我知道了', unfollow: '取消追踪', unknownAddress: '你似乎遨游到了一个未知空间,请返回重试', - unpinArticleComment: '取消精选', - unpinCircleComment: '取消置顶', unpinArticle: '取消置顶', untitle: '未命名', uploadCover: '上传封面', @@ -599,22 +449,14 @@ export const TEXT = { }, en: { about: 'About Us', - accountArchived: 'Account Archived', - accountBanned: 'Account Banned', - accountFrozen: 'Account Frozen', - addArticleTag: 'Add articles', addedArticleCircle: 'Articles Added', - addedArticleTag: 'Tags added', addToCircle: 'Add to Circle', agree: 'Agree', agreeAndContinue: 'Agree and continue', all: 'All time', - allIcymi: `Matters' Choice`, allowResponses: 'Allow Responses', allowResponsesHint: 'Allow readers to respond to this article (can NOT be disabled afterwards)', - allTags: 'Tags', - allTopics: 'Recommended Topics', likesReceived: 'Likes Received', likesSent: 'Likes Given', article: 'Article', @@ -622,23 +464,8 @@ export const TEXT = { articleBanned: 'The article has been archived due to violation of terms', articleFingerprint: 'Content Hash', articleResponse: 'Response', - back: 'Back', - backToAll: 'Back to All', - block: 'Block', - blockUser: 'Block User', bookmark: 'Bookmark', - bugBountyProgram: 'Bug Bounty', callbackClose: 'Return and continue', - cancel: 'Cancel', - change: 'Change', - changeEmail: 'Change Email', - changePassword: 'Change Password', - changeUserName: 'Change Matters ID', - circleBroadcast: 'Broadcast', - circleCreated: 'Circle successfully created', - circleDiscussion: 'Discussion', - clear: 'Clear', - close: 'Cancel', collapseComment: 'Collapse response', collectedOnly: 'Articles Only', commentBlocked: 'You have blocked the user.', @@ -695,57 +522,30 @@ export const TEXT = { extend: 'Collect', collectArticle: 'Collect Article', failureChange: 'Failed to edit, please try again.', - failureCopy: 'Failed to copy, please try again.', - failureLogout: 'Failed to log out, please try again.', failureDonation: 'Failed to Donate', failurePublish: 'Failed to publish, please try again.', failureUploadImage: 'Failed to upload, please try again.', featuredComments: 'Community Selected', fiatCurrency: 'Fiat Currency', follow: 'Follow', - followAuthor: 'Follow Author', followed: 'Followed', follower: 'Followers', following: 'Following', - followingMe: 'Followers', forgetPassword: 'Forget Password', - frequentSearch: 'Search trends', - guide: 'Explore Matters', hasSupportedArticle: 'people supported this article', help: 'Help', - helpCenter: 'Help Center', - hintAddTag: - 'Adding tags helps readers find your articles. Add or create new tags.', hintAddRecommendedTag: 'Recently used', - hintAddTagNamingRestriction: - 'Tag name does not allow punctuations, only one space is allowed between words, and the maximum length is 50 characters', - hintAddCircleInvitee: 'Invite friends to join your circle', - hintCircleAddArticles: 'Add articles to your circle', - hintCircleDisplayName: 'Must be between 2-12 characters long.', hintCircleName: 'Must be between 2-20 characters long. Only letters letters, numbers and underline are allowed.', - hintDescription: 'Maximum 200 characters.', - hintDisplayName: 'Must be between 2-20 characters long.', hintPassword: 'Minimum 8 characters. Uppercase/lowercase letters, numbers and symbols are allowed', hintPaymentPassword: 'Enter a 6-digit payment password.', hintPaymentPointer: 'The wallet address starts with "$".', - hintTerm: - 'We have amended or modified our Terms and Privacy Policy. Agree and accept all Terms to continue using our Services.', hintUserDescription: 'Recommended within 50 words and 200 words maximum.', - hintUserName: - 'Must be between 4-15 characters long. Only lowercase letters, numbers and underline are accepted.', hintVerificationCode: 'Code will expire after 20 minutes', - history: 'History', - hkd: 'HKD', hottest: 'Trending', - hottestArticles: 'Trending', invalidEmail: 'Please fill in a valid email address', - invalidUserName: 'Invalid Matters ID', - joinCivicLiker: 'Become a Civil Liker and support creators! ', latest: 'Latest', - lately: 'Last', - latestArticles: 'Latest Articles', latestResponses: 'Latest Responses', license: 'License', linkEns: 'By connecting ENS, benefits are:', @@ -754,44 +554,19 @@ export const TEXT = { logbook: 'Logbook', logbook2LaunchText: "Logbook 2.0 has just launched. If you are an owner of Traveloggers, and haven't claimed, you may claim one from the new Logbook page:", - myNFTCollections: 'My NFT Collections', moreEnsInfo: 'More ENS information, check', login: 'Log in', - authEntries: 'Enter', - authMethod: 'Choose a method to enter', - successLinkWallet: 'Wallet successfully linked', - supportSettingHint: 'Maximum 140 characters.', - loginPassword: 'Password', logout: 'Log Out', members: 'Members', - migrationSideBar: 'Migrate to Matters', month: 'month', - moreActions: 'More Actions', - mutualFollowing: 'Followed', - myAppreciations: 'Likes', - myBookmarks: 'Bookmarks', - myCircle: 'Circle', - myDrafts: 'Drafts', - myFollowees: 'Following', myPage: 'My Page', - myProfile: 'Profile', - myWallet: 'Wallet', - newPassword: 'New password', - nextStep: 'Next', - noArticlesYet: 'No published articles yet', - noTagsUsageYet: 'No articles using tags', notifications: 'Notifications', - openCommunity: 'Open Source', password: 'Password', passwordAgain: 'Enter password again', - passwordHint: - 'Minimum 8 characters. Uppercase/lowercase letters, numbers and symbols are allowed.', passwordNotMatch: 'The new password and confirmation password do not match.', pay: 'Pay', pin: 'Pick', - pinArticleComment: 'Pin Comment', - pinCircleComment: 'Pin Broadcast', pinned: 'Pinned', previousStep: 'Previous', publish: 'Publish', @@ -889,15 +664,12 @@ export const TEXT = { topUp: 'Top Up', toYourIPNSPage: 'to your IPNS page', unblockSuccess: 'User unblocked and can reply your articles now.', - unblockUser: 'Unblock', uncollapseComment: 'Unfold', understood: 'I see', unfollow: 'Unfollow', unknownAddress: "It seems you've come to an unknown space, please go back and retry", unpin: 'Unselected', - unpinArticleComment: 'Unpin Comment', - unpinCircleComment: 'Unpin Broadcast', unpinArticle: 'Unpin', untitle: 'Untitled', uploadCover: 'Upload Cover', diff --git a/src/common/utils/oauth.test.ts b/src/common/utils/oauth.test.ts new file mode 100644 index 0000000000..75c7e35e29 --- /dev/null +++ b/src/common/utils/oauth.test.ts @@ -0,0 +1,16 @@ +import { describe, expect, it, vi } from 'vitest' + +import { signupCallbackUrl } from './oauth' + +describe('utils/oauth', () => { + vi.stubEnv('NEXT_PUBLIC_SITE_DOMAIN', 'web-dev.matters.town') + + it('should get signupCallbackUrl correctly', () => { + expect(signupCallbackUrl('email', 'code')).toEqual( + 'https://web-dev.matters.town/callback/email-signup?email=email&referral=code' + ) + expect(signupCallbackUrl('email')).toEqual( + 'https://web-dev.matters.town/callback/email-signup?email=email' + ) + }) +}) diff --git a/src/common/utils/oauth.ts b/src/common/utils/oauth.ts index 9ccd42dd56..9712bb9f64 100644 --- a/src/common/utils/oauth.ts +++ b/src/common/utils/oauth.ts @@ -97,12 +97,15 @@ export const facebookOauthUrl = async (type: OauthType) => { return url } -export const signupCallbackUrl = (email: string, referralCode: string) => { +export const signupCallbackUrl = (email: string, referralCode?: string) => { return `https://${process.env.NEXT_PUBLIC_SITE_DOMAIN}/callback/${ CALLBACK_PROVIDERS.EmailSignup - }?email=${encodeURIComponent( - email - )}&${REFERRAL_QUERY_REFERRAL_KEY}=${encodeURIComponent(referralCode)}` + }?${new URLSearchParams({ + email: encodeURIComponent(email), + ...(referralCode + ? { [REFERRAL_QUERY_REFERRAL_KEY]: encodeURIComponent(referralCode) } + : null), + }).toString()}` } export const signinCallbackUrl = (email: string) => { diff --git a/src/components/BlockUser/Dialog/index.tsx b/src/components/BlockUser/Dialog/index.tsx index adcedb3075..428e12bfb7 100644 --- a/src/components/BlockUser/Dialog/index.tsx +++ b/src/components/BlockUser/Dialog/index.tsx @@ -77,7 +77,7 @@ const BlockUserDialog = ({ user, children }: BlockUserDialogProps) => { closeDialog={closeDialog} btns={ } + text={} color="red" onClick={() => { onBlock() @@ -87,7 +87,7 @@ const BlockUserDialog = ({ user, children }: BlockUserDialogProps) => { } smUpBtns={ } + text={} color="red" onClick={() => { onBlock() diff --git a/src/components/Dialogs/AddArticlesCollectionDialog/SearchInput/index.tsx b/src/components/Dialogs/AddArticlesCollectionDialog/SearchInput/index.tsx index 03dd0dda62..6405b368e4 100644 --- a/src/components/Dialogs/AddArticlesCollectionDialog/SearchInput/index.tsx +++ b/src/components/Dialogs/AddArticlesCollectionDialog/SearchInput/index.tsx @@ -1,10 +1,8 @@ import { VisuallyHidden } from '@reach/visually-hidden' import { Formik } from 'formik' -import { useContext } from 'react' import { useIntl } from 'react-intl' -import { translate } from '~/common/utils' -import { IconClose20, IconSearch20, LanguageContext } from '~/components' +import { IconClose20, IconSearch20 } from '~/components' import styles from './styles.module.css' @@ -29,7 +27,6 @@ const SearchInput: React.FC = ({ defaultMessage: 'Search', id: 'xmcVZ0', }) - const { lang } = useContext(LanguageContext) return ( {}}> @@ -75,7 +72,10 @@ const SearchInput: React.FC = ({