fix: harmonizar pesquisa e navegacao dos catalogos em QA
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Link, useForm, router, usePage } from '@inertiajs/react';
|
||||
import { useState } from 'react';
|
||||
import { catalogueReturnHref } from '@/lib/catalogue-context';
|
||||
import InvestmentMapPanel from '@/components/investment-map-panel';
|
||||
import StructureGeographyPanel, {
|
||||
type StructureGeography,
|
||||
@@ -76,8 +77,15 @@ function Editor({
|
||||
const save = useForm({ origin_id: origin?.id ?? null });
|
||||
const Frame = management ? Management : Layout;
|
||||
const base = management ? '/management/portfolio' : '/carteira';
|
||||
const pageUrl = usePage().url;
|
||||
return (
|
||||
<Frame title={record.title}>
|
||||
<Link
|
||||
className="underline"
|
||||
href={catalogueReturnHref(base, pageUrl)}
|
||||
>
|
||||
Voltar à pesquisa
|
||||
</Link>
|
||||
<p>
|
||||
{kind(record)} · {record.content.code}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user