@hed-hog/faq 0.0.278 → 0.0.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -101,10 +101,9 @@ export default function FAQPage() {
|
|
|
101
101
|
}
|
|
102
102
|
}, [currentLocaleCode]);
|
|
103
103
|
|
|
104
|
-
const {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
} = useQuery<PaginationResult<Faq>>({
|
|
104
|
+
const { data: faqResult, refetch: refetchFaq } = useQuery<
|
|
105
|
+
PaginationResult<Faq>
|
|
106
|
+
>({
|
|
108
107
|
queryKey: ['faq', debouncedSearch, page, pageSize],
|
|
109
108
|
queryFn: async () => {
|
|
110
109
|
const response = await request({
|
|
@@ -117,13 +116,8 @@ export default function FAQPage() {
|
|
|
117
116
|
});
|
|
118
117
|
return response.data as PaginationResult<Faq>;
|
|
119
118
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
total: 0,
|
|
123
|
-
page: 1,
|
|
124
|
-
pageSize: 10,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
119
|
+
});
|
|
120
|
+
const { data = [], total = 0 } = faqResult ?? {};
|
|
127
121
|
|
|
128
122
|
const { data: statsData, refetch: refetchStats } = useQuery<any>({
|
|
129
123
|
queryKey: ['faq-stats'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/faq",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.279",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
12
|
"@hed-hog/api-locale": "0.0.13",
|
|
13
13
|
"@hed-hog/api-prisma": "0.0.5",
|
|
14
|
-
"@hed-hog/
|
|
15
|
-
"@hed-hog/
|
|
16
|
-
"@hed-hog/api": "0.0.
|
|
14
|
+
"@hed-hog/core": "0.0.279",
|
|
15
|
+
"@hed-hog/api": "0.0.4",
|
|
16
|
+
"@hed-hog/api-pagination": "0.0.6"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|