@hed-hog/contact-us 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.
@@ -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] = useState(10);
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: 'Home', href: '/' }, { label: t('title') }]}
302
+ breadcrumbs={[{ label: t('home'), href: '/' }, { label: t('title') }]}
298
303
  title={t('title')}
299
304
  description={t('description')}
300
305
  />
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "ContactUs": {
3
+ "home": "Home",
3
4
  "title": "Contact Us",
4
5
  "description": "Manage contact messages sent from the website",
5
6
  "totalContacts": "Total Contacts",
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "ContactUs": {
3
+ "home": "Início",
3
4
  "title": "Fale Conosco",
4
5
  "description": "Gerencie as mensagens de contato enviadas pelo site",
5
6
  "totalContacts": "Total de Contatos",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/contact-us",
3
- "version": "0.0.330",
3
+ "version": "0.0.332",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -10,10 +10,10 @@
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api": "0.0.8",
13
+ "@hed-hog/api-pagination": "0.0.7",
14
+ "@hed-hog/core": "0.0.332",
13
15
  "@hed-hog/api-locale": "0.0.14",
14
- "@hed-hog/core": "0.0.330",
15
- "@hed-hog/api-prisma": "0.0.6",
16
- "@hed-hog/api-pagination": "0.0.7"
16
+ "@hed-hog/api-prisma": "0.0.6"
17
17
  },
18
18
  "exports": {
19
19
  ".": {