@hed-hog/faq 0.0.330 → 0.0.332
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.
|
@@ -24,6 +24,7 @@ import { Button } from '@/components/ui/button';
|
|
|
24
24
|
import { Card, CardContent } from '@/components/ui/card';
|
|
25
25
|
import { Input } from '@/components/ui/input';
|
|
26
26
|
import { Label } from '@/components/ui/label';
|
|
27
|
+
import { usePersistedPageSize } from '@/hooks/use-persisted-page-size';
|
|
27
28
|
import {
|
|
28
29
|
Select,
|
|
29
30
|
SelectContent,
|
|
@@ -92,7 +93,11 @@ export default function FAQPage() {
|
|
|
92
93
|
const [searchTerm, setSearchTerm] = useState('');
|
|
93
94
|
const debouncedSearch = useDebounce(searchTerm);
|
|
94
95
|
const [page, setPage] = useState(1);
|
|
95
|
-
const [pageSize, setPageSize] =
|
|
96
|
+
const [pageSize, setPageSize] = usePersistedPageSize({
|
|
97
|
+
storageKey: 'pagination:faq:pageSize',
|
|
98
|
+
defaultValue: 10,
|
|
99
|
+
allowedValues: [10, 20, 30, 40, 50],
|
|
100
|
+
});
|
|
96
101
|
const [selectedLocale, setSelectedLocale] = useState<string>('');
|
|
97
102
|
const { request, locales, currentLocaleCode } = useApp();
|
|
98
103
|
|
|
@@ -247,7 +252,7 @@ export default function FAQPage() {
|
|
|
247
252
|
return (
|
|
248
253
|
<Page>
|
|
249
254
|
<PageHeader
|
|
250
|
-
breadcrumbs={[{ label: '
|
|
255
|
+
breadcrumbs={[{ label: t('home'), href: '/' }, { label: t('title') }]}
|
|
251
256
|
actions={[
|
|
252
257
|
{
|
|
253
258
|
label: t('newQuestion'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/faq",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.332",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
12
|
"@hed-hog/api-prisma": "0.0.6",
|
|
13
|
-
"@hed-hog/core": "0.0.330",
|
|
14
|
-
"@hed-hog/api-pagination": "0.0.7",
|
|
15
13
|
"@hed-hog/api-locale": "0.0.14",
|
|
14
|
+
"@hed-hog/api-pagination": "0.0.7",
|
|
15
|
+
"@hed-hog/core": "0.0.332",
|
|
16
16
|
"@hed-hog/api": "0.0.8"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|