@hed-hog/contact-us 0.0.276 → 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.
- package/README.md +1 -1
- package/hedhog/frontend/app/page.tsx.ejs +16 -16
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ O módulo `@hed-hog/contact-us` é responsável pela gestão das mensagens envia
|
|
|
58
58
|
- **Descrição:** Retorna os detalhes de uma mensagem de contato pelo seu ID.
|
|
59
59
|
- **Parâmetros:**
|
|
60
60
|
- `id` (path): número inteiro identificador da mensagem.
|
|
61
|
-
- **Resposta:**
|
|
61
|
+
- **Resposta:**
|
|
62
62
|
```json
|
|
63
63
|
{
|
|
64
64
|
"id": number,
|
|
@@ -127,9 +127,9 @@ export default function Page() {
|
|
|
127
127
|
},
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
const { data: contacts, refetch: refetchList } = useQuery<
|
|
131
|
-
PaginationResult<ContactUs>
|
|
132
|
-
>({
|
|
130
|
+
const { data: contacts, refetch: refetchList } = useQuery<
|
|
131
|
+
PaginationResult<ContactUs>
|
|
132
|
+
>({
|
|
133
133
|
queryKey: ['contact-us'],
|
|
134
134
|
queryFn: async () => {
|
|
135
135
|
const response = await request({
|
|
@@ -141,16 +141,16 @@ export default function Page() {
|
|
|
141
141
|
});
|
|
142
142
|
return response.data as PaginationResult<ContactUs>;
|
|
143
143
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
144
|
+
});
|
|
145
|
+
const contactList = contacts ?? {
|
|
146
|
+
data: [],
|
|
147
|
+
total: 0,
|
|
148
|
+
page: 1,
|
|
149
|
+
pageSize: 10,
|
|
150
|
+
lastPage: 1,
|
|
151
|
+
prev: null,
|
|
152
|
+
next: null,
|
|
153
|
+
};
|
|
154
154
|
|
|
155
155
|
const getStatusBadge = (status: ContactUsStatusEnum) => {
|
|
156
156
|
const statusOption = statusOptions.find((s) => s.value === status);
|
|
@@ -315,9 +315,9 @@ export default function Page() {
|
|
|
315
315
|
</div>
|
|
316
316
|
|
|
317
317
|
<div className="space-y-4">
|
|
318
|
-
{
|
|
319
|
-
<div className="grid gap-4">
|
|
320
|
-
{
|
|
318
|
+
{contactList.data.length > 0 ? (
|
|
319
|
+
<div className="grid gap-4">
|
|
320
|
+
{contactList.data.map((contact) => (
|
|
321
321
|
<Card
|
|
322
322
|
key={contact.id}
|
|
323
323
|
className="overflow-hidden transition-all duration-200 hover:border-primary/20 hover:shadow-md"
|
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.279",
|
|
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-locale": "0.0.13",
|
|
13
|
-
"@hed-hog/core": "0.0.276",
|
|
14
13
|
"@hed-hog/api-prisma": "0.0.5",
|
|
15
|
-
"@hed-hog/
|
|
16
|
-
"@hed-hog/api": "0.0.4"
|
|
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
|
".": {
|