chore: Solved problems in next to deploy

master
adriano 2025-06-12 18:32:27 -03:00
parent f9786de1b7
commit 306ba95bc2
4 changed files with 18 additions and 6 deletions

View File

@ -114,6 +114,7 @@ export default function ProductManagement() {
}
}
} catch (err) {
console.log(err)
setError("Erro de conexão com o servidor")
} finally {
setIsLoading(false)
@ -137,8 +138,7 @@ export default function ProductManagement() {
body: JSON.stringify(createForm),
})
if (response.ok) {
const result = await response.json()
if (response.ok) {
setSuccess("Produto criado com sucesso!")
setCreateForm({ name: "", description: "", price: 0 })
setIsCreateDialogOpen(false)
@ -153,6 +153,7 @@ export default function ProductManagement() {
}
}
} catch (err) {
console.log(err)
setError("Erro de conexão com o servidor")
} finally {
setIsCreating(false)
@ -183,8 +184,7 @@ export default function ProductManagement() {
body: JSON.stringify(editForm),
})
if (response.ok) {
const result = await response.json()
if (response.ok) {
setSuccess("Produto atualizado com sucesso!")
setEditingId(null)
setEditForm({})
@ -199,6 +199,7 @@ export default function ProductManagement() {
}
}
} catch (err) {
console.log(err)
setError("Erro de conexão com o servidor")
} finally {
setIsUpdating(false)

View File

@ -242,7 +242,7 @@ export default function TranscriptionTable() {
<Label htmlFor="pageSize">Registros por página</Label>
<Select
value={pageSize.toString()}
onValueChange={(value:any) => {
onValueChange={(value:string) => {
setPageSize(Number(value))
setCurrentPage(1)
}}
@ -332,7 +332,7 @@ export default function TranscriptionTable() {
</TableHeader>
<TableBody>
{data.map((item, index) => (
<TableRow key={(item as any).uniqueid || index}>
<TableRow key={item.uniqueid || index}>
{who === "hit" ? (
<>
<TableCell>{(item as HitTranscriptionData).companyId || "-"}</TableCell>

View File

@ -17,6 +17,7 @@
"clsx": "^2.1.1",
"lucide-react": "^0.514.0",
"next": "15.2.4",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^3.3.1"
@ -5082,6 +5083,15 @@
}
}
},
"node_modules/next-themes": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",
"integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==",
"peerDependencies": {
"react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",
"react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"
}
},
"node_modules/next/node_modules/postcss": {
"version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",

View File

@ -18,6 +18,7 @@
"clsx": "^2.1.1",
"lucide-react": "^0.514.0",
"next": "15.2.4",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^3.3.1"