Skip to content

Commit

Permalink
fix(Z1328): fix errata visualizzazione mobile info tooltip 20241111
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-tocci-dxc authored and sgravinadxc committed Nov 28, 2024
1 parent 9a879a3 commit 8f30e65
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions fe-piattaforma/src/components/AccordionRow/accordionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface AccordionRowI {
StatusElement?: ReactElement | undefined;
onTooltipInfo?: string;
onActionRadio?: CRUDActionsI | undefined;
idTable?: string;
}

const AccordionRow: React.FC<AccordionRowI> = ({
Expand All @@ -44,6 +45,7 @@ const AccordionRow: React.FC<AccordionRowI> = ({
StatusElement,
onTooltipInfo = '',
onActionRadio,
idTable
}) => {
const [isOpen, setIsOpen] = useState<boolean>(false);
const { t } = useTranslation();
Expand Down Expand Up @@ -151,7 +153,8 @@ const AccordionRow: React.FC<AccordionRowI> = ({
color='primary'
/>
</Button>
) : <div className='mr-2'>
) : idTable === 'table-caricamento-massivo' && (
<div className='mr-2'>
<Button
className='p-0'
aria-label='Informazioni'
Expand All @@ -171,7 +174,7 @@ const AccordionRow: React.FC<AccordionRowI> = ({
>
Per un problema tecnico imprevisto l'elaborazione non è stata portata a termine, ti invitiamo a caricare nuovamente il file
</UncontrolledTooltip>
</div>}
</div>)}
</div>
{((onTooltipInfo || innerInfo?.onTooltipInfo) &&
innerInfo?.isPresentInList) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const ActivityReportTable = forwardRef(function ActivityReportTable(
<div className='row my-4'>
<div className='col'>
<Table
id='table'
id='table-caricamento-massivo'
heading={tableHeading}
values={pagination?.content ?? []}
totalCounter={pagination?.totalElements ?? -1}
Expand Down
3 changes: 3 additions & 0 deletions fe-piattaforma/src/components/Table/view/tableMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import clsx from 'clsx';
import { calculatePaginationBounds } from '../../../utils/pagination.utils';

interface MobileTableI {
id?: string;
onActionClick?: CRUDActionsI;
onTooltipInfo?: string;
values?: TableRowI[];
Expand All @@ -18,6 +19,7 @@ interface MobileTableI {
}

const TableMobile: React.FC<MobileTableI> = ({
id,
onActionClick,
onTooltipInfo = '',
values = [],
Expand Down Expand Up @@ -91,6 +93,7 @@ const TableMobile: React.FC<MobileTableI> = ({
key={index}
onTooltipInfo={onTooltipInfo}
onActionRadio={onActionRadio}
idTable={id || ''}
/>
))
) : (
Expand Down

0 comments on commit 8f30e65

Please sign in to comment.