diff --git a/lang/default.json b/lang/default.json index 08808ef24b..fc6c02df33 100644 --- a/lang/default.json +++ b/lang/default.json @@ -730,10 +730,6 @@ "defaultMessage": "Please set your transcation password.", "description": "PAYMENT_PASSWORD_NOT_SET" }, - "Ayepqz": { - "defaultMessage": "Remove", - "description": "src/components/Tag/index.tsx" - }, "B2As08": { "defaultMessage": "That's all", "description": "src/components/Interaction/InfiniteScroll/EndOfResults/index.tsx" diff --git a/lang/en.json b/lang/en.json index d93acb0fed..ac4e5ad537 100644 --- a/lang/en.json +++ b/lang/en.json @@ -730,10 +730,6 @@ "defaultMessage": "Please set your transcation password.", "description": "PAYMENT_PASSWORD_NOT_SET" }, - "Ayepqz": { - "defaultMessage": "Remove", - "description": "src/components/Tag/index.tsx" - }, "B2As08": { "defaultMessage": "That's all", "description": "src/components/Interaction/InfiniteScroll/EndOfResults/index.tsx" diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index 0ef1f49ef7..749e749aeb 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -730,10 +730,6 @@ "defaultMessage": "请先设定交易密码", "description": "PAYMENT_PASSWORD_NOT_SET" }, - "Ayepqz": { - "defaultMessage": "移除", - "description": "src/components/Tag/index.tsx" - }, "B2As08": { "defaultMessage": "没有更多", "description": "src/components/Interaction/InfiniteScroll/EndOfResults/index.tsx" diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index 038952628f..0c11411be7 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -730,10 +730,6 @@ "defaultMessage": "請先設定交易密碼", "description": "PAYMENT_PASSWORD_NOT_SET" }, - "Ayepqz": { - "defaultMessage": "移除", - "description": "src/components/Tag/index.tsx" - }, "B2As08": { "defaultMessage": "沒有更多", "description": "src/components/Interaction/InfiniteScroll/EndOfResults/index.tsx" diff --git a/package.json b/package.json index 10215b5ebb..dd3d4ec57e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matters-web", - "version": "5.0.1", + "version": "5.0.2", "description": "codebase of Matters' website", "author": "Matters ", "engines": { diff --git a/src/components/Context/ArticleAppreciation/index.tsx b/src/components/Context/ArticleAppreciation/index.tsx deleted file mode 100644 index 735c32b981..0000000000 --- a/src/components/Context/ArticleAppreciation/index.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { createContext, ReactNode, useState } from 'react' - -export const ArticleAppreciationContext = createContext( - {} as { - likesReceivedTotal: number - appreciateLeft: number - incrementLikesReceivedTotal: () => void - initArticleAppreciationContext: ( - likesReceivedTotal: number, - appreciateLeft: number - ) => void - } -) - -export const ArticleAppreciationProvider = ({ - children, -}: { - children: ReactNode -}) => { - const [likesReceivedTotal, setLikesReceivedTotal] = useState(0) - const [appreciateLeft, setAppreciateLeft] = useState(0) - - const initArticleAppreciationContext = ( - likesReceivedTotal: number, - appreciateLeft: number - ) => { - setLikesReceivedTotal(likesReceivedTotal) - setAppreciateLeft(appreciateLeft) - } - - const incrementLikesReceivedTotal = () => { - setLikesReceivedTotal((prev) => prev + 1) - setAppreciateLeft((prev) => prev - 1) - } - - return ( - - {children} - - ) -} diff --git a/src/components/Context/index.ts b/src/components/Context/index.ts index a67da27b5b..124a5e5232 100644 --- a/src/components/Context/index.ts +++ b/src/components/Context/index.ts @@ -1,5 +1,4 @@ export * from './ActiveCommentEditor' -export * from './ArticleAppreciation' export * from './CommentDrafts' export * from './DraftDetailState' export * from './Features' diff --git a/src/components/Dialogs/TagListDialog/index.tsx b/src/components/Dialogs/TagListDialog/index.tsx index b6983ce1d3..379952f058 100644 --- a/src/components/Dialogs/TagListDialog/index.tsx +++ b/src/components/Dialogs/TagListDialog/index.tsx @@ -1,6 +1,6 @@ import { FormattedMessage } from 'react-intl' -import { Dialog, Tag, useDialogSwitch } from '~/components' +import { Dialog, ListTag, useDialogSwitch } from '~/components' import { DigestTagFragment } from '~/gql/graphql' import styles from './styles.module.css' @@ -41,9 +41,8 @@ const BaseDialog = ({ tags, children }: TagListDialogProps) => {