Skip to content

Commit 443d6b3

Browse files
committed
update(app): completed dashboard-insights
1 parent 468cf3d commit 443d6b3

File tree

9 files changed

+278
-124
lines changed

9 files changed

+278
-124
lines changed

package-lock.json

Lines changed: 52 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@types/recharts": "^1.1.19",
2222
"@types/styled-components": "^4.1.14",
2323
"@types/yup": "^0.26.13",
24-
"antd": "^3.20.2",
24+
"antd": "^3.20.6",
2525
"apollo-boost": "^0.3.1",
2626
"classnames": "^2.2.6",
2727
"concurrently": "^4.1.0",

src/apollo/queries/dashboard.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,22 +134,25 @@ export const DASHBOARD_INSIGHTS = gql`
134134
query Insights (
135135
$token: String, $stockCode: String,
136136
$search: String, $tags: [String!],
137-
$limit: Int, $offset: Int, $exchange: REITExchange
137+
$limit: Float, $offset: Float, $exchange: REITExchange
138138
) {
139139
insights (
140140
token: $token, stockCode: $stockCode,
141141
search: $search, tags: $tags,
142-
limit: $limit, offset: $offset, exchange: $exchange
142+
exchange: $exchange
143143
) {
144-
insightId
145-
title
146-
description
147-
content
148-
link
149-
avatar
150-
stockCode
151-
tags
152-
publishDate
144+
count
145+
rows (limit: $limit, offset: $offset) {
146+
insightId
147+
title
148+
description
149+
content
150+
link
151+
avatar
152+
stockCode
153+
tags
154+
publishDate
155+
}
153156
}
154157
}
155158
`;

0 commit comments

Comments
 (0)