diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index 4604132e9e..174eeba286 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -440,7 +440,7 @@ "defaultMessage": "密码" }, "5y5rID": { - "defaultMessage": "我们将尽快审核你的申请,敬请期待活动开跑!" + "defaultMessage": "我们将尽快处理你的申请,敬请期待活动开跑!" }, "6+eeJ4": { "defaultMessage": "可使用小写英文、数字及下划线", @@ -1070,7 +1070,7 @@ "defaultMessage": "用户名" }, "HB2VOx": { - "defaultMessage": "系統或連線異常,請刷新頁面後重新點擊報名參加" + "defaultMessage": "系统或连线异常,请刷新页面后重新点击报名参加" }, "HBxXD/": { "defaultMessage": "版权声明" @@ -1546,7 +1546,7 @@ "defaultMessage": "换一批" }, "Pq/7m5": { - "defaultMessage": "晚鸟审核中", + "defaultMessage": "晚鸟参与处理中", "description": "type:join" }, "PtV68+": { @@ -2142,7 +2142,7 @@ "defaultMessage": "我的创作" }, "al5/yQ": { - "defaultMessage": "晚鸟审核通过" + "defaultMessage": "晚鸟参与通过" }, "aqX2Bt": { "defaultMessage": "前往首页", @@ -2536,7 +2536,7 @@ "description": "src/components/Forms/SelectAuthMethodForm/NormalFeed.tsx" }, "jLkKbI": { - "defaultMessage": "报名审核中", + "defaultMessage": "报名处理中", "description": "type:apply" }, "jiB0Z2": { @@ -2685,7 +2685,7 @@ "description": "src/components/Forms/CreateCircleForm/Profile.tsx" }, "m1wKuC": { - "defaultMessage": "投稿七日书活动" + "defaultMessage": "参与七日书活动" }, "m4GG4b": { "defaultMessage": "删除选集" diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index 6ec188af12..3258131fe0 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -440,7 +440,7 @@ "defaultMessage": "密碼" }, "5y5rID": { - "defaultMessage": "我們將盡快審核你的申請,敬請期待活動開跑!" + "defaultMessage": "我們將盡快處理你的申請,敬請期待活動開跑!" }, "6+eeJ4": { "defaultMessage": "可使用小寫英文、數字及下劃線", @@ -1546,7 +1546,7 @@ "defaultMessage": "換一批" }, "Pq/7m5": { - "defaultMessage": "晚鳥審核中", + "defaultMessage": "晚鳥參與處理中", "description": "type:join" }, "PtV68+": { @@ -2142,7 +2142,7 @@ "defaultMessage": "我的創作" }, "al5/yQ": { - "defaultMessage": "晚鳥審核通過" + "defaultMessage": "晚鳥參與通過" }, "aqX2Bt": { "defaultMessage": "前往首頁", @@ -2536,7 +2536,7 @@ "description": "src/components/Forms/SelectAuthMethodForm/NormalFeed.tsx" }, "jLkKbI": { - "defaultMessage": "報名審核中", + "defaultMessage": "報名處理中", "description": "type:apply" }, "jiB0Z2": { @@ -2685,7 +2685,7 @@ "description": "src/components/Forms/CreateCircleForm/Profile.tsx" }, "m1wKuC": { - "defaultMessage": "投稿七日書活動" + "defaultMessage": "參與七日書活動" }, "m4GG4b": { "defaultMessage": "刪除選集" diff --git a/src/views/CampaignDetail/InfoHeader/Participants/Dialog/Content.tsx b/src/views/CampaignDetail/InfoHeader/Participants/Dialog/Content.tsx index 61923eeed6..db4ccf68a5 100644 --- a/src/views/CampaignDetail/InfoHeader/Participants/Dialog/Content.tsx +++ b/src/views/CampaignDetail/InfoHeader/Participants/Dialog/Content.tsx @@ -1,3 +1,4 @@ +import { useQuery } from '@apollo/react-hooks' import { useContext } from 'react' import { analytics, mergeConnections } from '~/common/utils' @@ -7,7 +8,6 @@ import { List, QueryError, SpinnerBlock, - usePublicQuery, useRoute, ViewerContext, } from '~/components' @@ -21,10 +21,10 @@ const ParticipantsDialogContent = () => { const { getQuery } = useRoute() const shortHash = getQuery('shortHash') - const { data, loading, error, fetchMore } = - usePublicQuery(GET_PARTICIPANTS, { - variables: { shortHash }, - }) + const { data, loading, error, fetchMore } = useQuery( + GET_PARTICIPANTS, + { variables: { shortHash } } + ) // pagination const campaign = data?.campaign @@ -56,11 +56,11 @@ const ParticipantsDialogContent = () => { return } - if (!edges || edges.length <= 0 || !pageInfo) { + if (!campaign || !edges || edges.length <= 0 || !pageInfo) { return null } - const isViewerApplySucceeded = campaign?.application?.state === 'succeeded' + const isViewerApplySucceeded = campaign.application?.state === 'succeeded' return (