calculo: fix pensaoalimenticia
Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
ae71161860
commit
3f012552e7
2 files changed
+7
-2
No files matched your search
@@ -149,13 +149,13 @@ export function CalculosList() {
|
||||
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
|
||||
Novo Cálculo Judicial
|
||||
</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
|
||||
Novo Cálculo de Pensão
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -32,6 +32,11 @@ export function DetalhePensaoAlimenticia() {
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
if (id === "novo") {
|
||||
setLoading(false);
|
||||
setCalculo(null);
|
||||
return;
|
||||
}
|
||||
const loadCalculo = async () => {
|
||||
try {
|
||||
// Buscar cálculo pelo endpoint correto
|
||||
|
||||
Reference in new issue
Block a user