@hed-hog/contact-us 0.0.330 → 0.0.331
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.
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
} from '@/components/ui/sheet';
|
|
49
49
|
import { Textarea } from '@/components/ui/textarea';
|
|
50
50
|
import { useDebounce } from '@/hooks/use-debounce';
|
|
51
|
+
import { usePersistedPageSize } from '@/hooks/use-persisted-page-size';
|
|
51
52
|
import { formatDateTime } from '@/lib/format-date';
|
|
52
53
|
import { cn } from '@/lib/utils';
|
|
53
54
|
import { User } from '@hed-hog/api-types';
|
|
@@ -129,7 +130,11 @@ export default function ContactUsPage() {
|
|
|
129
130
|
const debouncedSearch = useDebounce(searchTerm);
|
|
130
131
|
const [statusFilter, setStatusFilter] = useState('all');
|
|
131
132
|
const [page, setPage] = useState(1);
|
|
132
|
-
const [pageSize, setPageSize] =
|
|
133
|
+
const [pageSize, setPageSize] = usePersistedPageSize({
|
|
134
|
+
storageKey: 'pagination:contact-us:pageSize',
|
|
135
|
+
defaultValue: 10,
|
|
136
|
+
allowedValues: [10, 20, 30, 40, 50],
|
|
137
|
+
});
|
|
133
138
|
const [loadingRespond, setLoadingRespond] = useState(false);
|
|
134
139
|
|
|
135
140
|
const { request, currentLocaleCode, getSettingValue } = useApp();
|
|
@@ -294,7 +299,7 @@ export default function ContactUsPage() {
|
|
|
294
299
|
return (
|
|
295
300
|
<Page>
|
|
296
301
|
<PageHeader
|
|
297
|
-
breadcrumbs={[{ label: '
|
|
302
|
+
breadcrumbs={[{ label: t('home'), href: '/' }, { label: t('title') }]}
|
|
298
303
|
title={t('title')}
|
|
299
304
|
description={t('description')}
|
|
300
305
|
/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact-us",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.331",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
-
"@hed-hog/api": "0.0.8",
|
|
13
12
|
"@hed-hog/api-locale": "0.0.14",
|
|
14
|
-
"@hed-hog/
|
|
15
|
-
"@hed-hog/api
|
|
16
|
-
"@hed-hog/
|
|
13
|
+
"@hed-hog/api-pagination": "0.0.7",
|
|
14
|
+
"@hed-hog/api": "0.0.8",
|
|
15
|
+
"@hed-hog/core": "0.0.331",
|
|
16
|
+
"@hed-hog/api-prisma": "0.0.6"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|