calculo: fix pensaoalimenticia
Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
866a3fe539
commit
ae71161860
2 files changed
+15
-6
No files matched your search
@@ -144,12 +144,20 @@ export function CalculosList() {
|
|||||||
<div className="container mx-auto px-4 py-8">
|
<div className="container mx-auto px-4 py-8">
|
||||||
<div className="flex justify-between items-center mb-6">
|
<div className="flex justify-between items-center mb-6">
|
||||||
<h1 className="text-2xl font-bold text-gray-900">Cálculos Judiciais</h1>
|
<h1 className="text-2xl font-bold text-gray-900">Cálculos Judiciais</h1>
|
||||||
<Link
|
<div className="flex gap-3">
|
||||||
to="/calculos/novo"
|
<Link
|
||||||
className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
to="/calculos/novo"
|
||||||
>
|
className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
||||||
Novo Cálculo
|
>
|
||||||
</Link>
|
Novo Cálculo
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pensao-alimenticia/novo"
|
||||||
|
className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
|
||||||
|
>
|
||||||
|
Novo Pensão
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Filtros */}
|
{/* Filtros */}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export function DetalhePensaoAlimenticia() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const loadCalculo = async () => {
|
const loadCalculo = async () => {
|
||||||
try {
|
try {
|
||||||
|
// Buscar cálculo pelo endpoint correto
|
||||||
const response = await api.get(`/api/pensao-alimenticia/${id}`);
|
const response = await api.get(`/api/pensao-alimenticia/${id}`);
|
||||||
setCalculo(response.data);
|
setCalculo(response.data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user