Skip to content

Commit

Permalink
fix(search): Search result remove count
Browse files Browse the repository at this point in the history
  • Loading branch information
49659410+tx0c committed Sep 26, 2023
1 parent 0dc46ad commit 95f30cf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
8 changes: 4 additions & 4 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,10 @@
"defaultMessage": "Articles has been collected",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "Incorrect verification code. Please check your input, or try resend",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1616,10 +1620,6 @@
"ub1kHa": {
"defaultMessage": "Add to collection"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} one {} other {# Results}} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "End of the results"
},
Expand Down
8 changes: 4 additions & 4 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,10 @@
"defaultMessage": "Articles has been collected",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "Incorrect verification code. Please check your input, or try resend",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1616,10 +1620,6 @@
"ub1kHa": {
"defaultMessage": "Add to collection"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} one {} other {# Results}} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "End of the results"
},
Expand Down
8 changes: 4 additions & 4 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,10 @@
"defaultMessage": "作品被关联",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters 搜索",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "验证码不正确,请检查输入内容或重新发送",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1616,10 +1620,6 @@
"ub1kHa": {
"defaultMessage": "加入选集"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} other {# 条结果}} - Matters 搜索",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "已显示所有结果"
},
Expand Down
8 changes: 4 additions & 4 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,10 @@
"defaultMessage": "作品被關聯",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters 搜尋",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "驗證碼不正確,請檢查輸入內容或重新發送",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1616,10 +1620,6 @@
"ub1kHa": {
"defaultMessage": "加入選集"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} other {# 條結果}} - Matters 搜尋",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "已顯示所有結果"
},
Expand Down
7 changes: 3 additions & 4 deletions src/views/Search/AggregateResults/Articles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const AggregateArticleResults = () => {

// pagination
const connectionPath = 'search'
const { edges, pageInfo, totalCount } = data?.search || {}
const { edges, pageInfo } = data?.search || {}

const intl = useIntl()

Expand Down Expand Up @@ -106,11 +106,10 @@ const AggregateArticleResults = () => {
<Head
title={intl.formatMessage(
{
defaultMessage:
'{q}: {totalCount, plural, =0 {} one {} other {# Results}} - Matters Search',
defaultMessage: '{q} - Matters Search',
description: 'src/views/Search/AggregateResults/Articles.tsx',
},
{ q: stripSpaces(q), totalCount: +(totalCount?.toPrecision(2) ?? 0) }
{ q: stripSpaces(q) }
)}
path={`/search?q=${stripSpaces(q)}&type=article`}
noSuffix
Expand Down

0 comments on commit 95f30cf

Please sign in to comment.