[MVPTN-88] fix(Render): Ajuste de renderização
This commit is contained in:
parent
11578438bf
commit
d3f8bebe1d
1 changed files with 12 additions and 7 deletions
|
|
@ -75,9 +75,12 @@ export default function TPessoaJuridicaForm({
|
|||
<TabsTrigger className="flex-1 cursor-pointer text-center" value="endereco">
|
||||
<HouseIcon /> Endereço
|
||||
</TabsTrigger>
|
||||
<TabsTrigger className="flex-1 cursor-pointer text-center" value="documentos">
|
||||
<IdCardIcon /> Representantes
|
||||
</TabsTrigger>
|
||||
{/* Representantes */}
|
||||
{data?.pessoa_id && (
|
||||
<TabsTrigger className="flex-1 cursor-pointer text-center" value="documentos">
|
||||
<IdCardIcon /> Representantes
|
||||
</TabsTrigger>
|
||||
)}
|
||||
</TabsList>
|
||||
<div className="max-h-[80vh] overflow-y-auto">
|
||||
{/* Dados Pessoais */}
|
||||
|
|
@ -351,10 +354,12 @@ export default function TPessoaJuridicaForm({
|
|||
</div>
|
||||
</div>
|
||||
</TabsContent>
|
||||
{/* Documentos */}
|
||||
<TabsContent value="documentos" className="space-y-4">
|
||||
<TPessoaRepresentantePage pessoa_id={data?.pessoa_id} />
|
||||
</TabsContent>
|
||||
{/* Representantes */}
|
||||
{data?.pessoa_id && (
|
||||
<TabsContent value="documentos" className="space-y-4">
|
||||
<TPessoaRepresentantePage pessoa_id={data?.pessoa_id} />
|
||||
</TabsContent>
|
||||
)}
|
||||
</div>
|
||||
</Tabs>
|
||||
</Form>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue