chore: Solved problems in next to deploy
parent
f9786de1b7
commit
306ba95bc2
|
@ -114,6 +114,7 @@ export default function ProductManagement() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
setError("Erro de conexão com o servidor")
|
setError("Erro de conexão com o servidor")
|
||||||
} finally {
|
} finally {
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
|
@ -137,8 +138,7 @@ export default function ProductManagement() {
|
||||||
body: JSON.stringify(createForm),
|
body: JSON.stringify(createForm),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const result = await response.json()
|
|
||||||
setSuccess("Produto criado com sucesso!")
|
setSuccess("Produto criado com sucesso!")
|
||||||
setCreateForm({ name: "", description: "", price: 0 })
|
setCreateForm({ name: "", description: "", price: 0 })
|
||||||
setIsCreateDialogOpen(false)
|
setIsCreateDialogOpen(false)
|
||||||
|
@ -153,6 +153,7 @@ export default function ProductManagement() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
setError("Erro de conexão com o servidor")
|
setError("Erro de conexão com o servidor")
|
||||||
} finally {
|
} finally {
|
||||||
setIsCreating(false)
|
setIsCreating(false)
|
||||||
|
@ -183,8 +184,7 @@ export default function ProductManagement() {
|
||||||
body: JSON.stringify(editForm),
|
body: JSON.stringify(editForm),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const result = await response.json()
|
|
||||||
setSuccess("Produto atualizado com sucesso!")
|
setSuccess("Produto atualizado com sucesso!")
|
||||||
setEditingId(null)
|
setEditingId(null)
|
||||||
setEditForm({})
|
setEditForm({})
|
||||||
|
@ -199,6 +199,7 @@ export default function ProductManagement() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
setError("Erro de conexão com o servidor")
|
setError("Erro de conexão com o servidor")
|
||||||
} finally {
|
} finally {
|
||||||
setIsUpdating(false)
|
setIsUpdating(false)
|
||||||
|
|
|
@ -242,7 +242,7 @@ export default function TranscriptionTable() {
|
||||||
<Label htmlFor="pageSize">Registros por página</Label>
|
<Label htmlFor="pageSize">Registros por página</Label>
|
||||||
<Select
|
<Select
|
||||||
value={pageSize.toString()}
|
value={pageSize.toString()}
|
||||||
onValueChange={(value:any) => {
|
onValueChange={(value:string) => {
|
||||||
setPageSize(Number(value))
|
setPageSize(Number(value))
|
||||||
setCurrentPage(1)
|
setCurrentPage(1)
|
||||||
}}
|
}}
|
||||||
|
@ -332,7 +332,7 @@ export default function TranscriptionTable() {
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{data.map((item, index) => (
|
{data.map((item, index) => (
|
||||||
<TableRow key={(item as any).uniqueid || index}>
|
<TableRow key={item.uniqueid || index}>
|
||||||
{who === "hit" ? (
|
{who === "hit" ? (
|
||||||
<>
|
<>
|
||||||
<TableCell>{(item as HitTranscriptionData).companyId || "-"}</TableCell>
|
<TableCell>{(item as HitTranscriptionData).companyId || "-"}</TableCell>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.514.0",
|
"lucide-react": "^0.514.0",
|
||||||
"next": "15.2.4",
|
"next": "15.2.4",
|
||||||
|
"next-themes": "^0.4.6",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"tailwind-merge": "^3.3.1"
|
"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": {
|
"node_modules/next/node_modules/postcss": {
|
||||||
"version": "8.4.31",
|
"version": "8.4.31",
|
||||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.514.0",
|
"lucide-react": "^0.514.0",
|
||||||
"next": "15.2.4",
|
"next": "15.2.4",
|
||||||
|
"next-themes": "^0.4.6",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"tailwind-merge": "^3.3.1"
|
"tailwind-merge": "^3.3.1"
|
||||||
|
|
Loading…
Reference in New Issue