@hed-hog/faq 0.0.329 → 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.
@@ -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] = useState(10);
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: 'Home', href: '/' }, { label: t('title') }]}
255
+ breadcrumbs={[{ label: t('home'), href: '/' }, { label: t('title') }]}
251
256
  actions={[
252
257
  {
253
258
  label: t('newQuestion'),
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "Faq": {
3
+ "home": "Home",
3
4
  "title": "Frequently Asked Questions",
4
5
  "description": "Manage all system FAQs",
5
6
  "newQuestion": "New Question",
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "Faq": {
3
+ "home": "Início",
3
4
  "title": "Perguntas Frequentes",
4
5
  "description": "Gerencie todas as perguntas frequentes do sistema",
5
6
  "newQuestion": "Nova Pergunta",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/faq",
3
- "version": "0.0.329",
3
+ "version": "0.0.331",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "@hed-hog/api-pagination": "0.0.7",
14
14
  "@hed-hog/api": "0.0.8",
15
15
  "@hed-hog/api-locale": "0.0.14",
16
- "@hed-hog/core": "0.0.329"
16
+ "@hed-hog/core": "0.0.331"
17
17
  },
18
18
  "exports": {
19
19
  ".": {