Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
loremedda committed Apr 19, 2024
1 parent 91405c9 commit e349337
Showing 1 changed file with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,38 @@ export default function PartyDetail({ party }: Props) {
</Grid>
</>
) : undefined}
{!isInstitutionTypePA && party.fiscalCode ? (
<>
{/* fiscalCode */}
<Grid item xs={2}>
<Typography variant="body2" sx={{ ...labelStyles }}>
{isTaxCodeEquals2Piva
? t('overview.partyDetail.isTaxCodeEquals2Piva')
: t('overview.partyDetail.fiscalCode')}
</Typography>
</Grid>
<Grid item xs={4}>
<Tooltip
title={
party.fiscalCode && party.fiscalCode.length >= showTooltipAfter
? party.fiscalCode
: ''
}
placement="top"
arrow={true}
>
<Typography
sx={{ ...infoStyles, maxWidth: '100% !important' }}
className="ShowDots"
>
{party.fiscalCode}
</Typography>
</Tooltip>
</Grid>
</>
) : (
<></>
)}
{/* vatNumberGroup */}
{party.institutionType === 'PSP' && (
<>
Expand All @@ -344,7 +376,7 @@ export default function PartyDetail({ party }: Props) {
)}

{/* fiscalCode */}
{isInstitutionTypePA && isTaxCodeEquals2Piva && party.fiscalCode && (
{isInstitutionTypePA && party.fiscalCode && (
<>
<Grid item xs={2}>
<Typography variant="body2" sx={{ ...labelStyles }}>
Expand Down

0 comments on commit e349337

Please sign in to comment.