Skip to content

Commit

Permalink
fix(Z1328): fix varie tabella cittadini mobile 20241118
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-tocci-dxc committed Nov 18, 2024
1 parent a20157b commit 8b978b4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const AccordionRow: React.FC<AccordionRowI> = ({
.map((x, index) => (
<div className='info-row' key={index}>
<span className='text-uppercase font-weight-semibold info-title'>
{t(x)}:{' '}
{t(x.replace(/([a-z])([A-Z])/g, '$1 $2'))}:{' '}
</span>
<span>{innerInfo[x]}</span>
</div>
Expand Down
3 changes: 1 addition & 2 deletions fe-piattaforma/src/components/SearchBar/searchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const SearchBar: React.FC<SearchBarI> = (props) => {
)}
field={id}
onInputChange={onInputQueryChange}
placeholder={device.mediaIsPhone ? '' : placeholder}
placeholder={placeholder}
value={searchValue}
maximum={
searchType === selectedSteps.FISCAL_CODE ? 16 : undefined
Expand Down Expand Up @@ -290,7 +290,6 @@ const SearchBar: React.FC<SearchBarI> = (props) => {
}
}}
>
{!searchValue && title}
</span>
{/* {tooltip && (
<div id='search-tooltip'>
Expand Down
16 changes: 9 additions & 7 deletions fe-piattaforma/src/components/Table/view/tableMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ const TableMobile: React.FC<MobileTableI> = ({
<div>
{valuesForMobile ? (
valuesForMobile.map((item, index: number) => (
<AccordionRow
{...item}
key={index}
onTooltipInfo={onTooltipInfo}
onActionRadio={onActionRadio}
idTable={id || ''}
/>
<React.Fragment key={index}>
<AccordionRow
{...item}
onTooltipInfo={onTooltipInfo}
onActionRadio={onActionRadio}
idTable={id || ''}
/>
<hr />
</React.Fragment>
))
) : (
<div className='my-3'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ const GenericSearchFilterTableLayout: React.FC<
<SearchBar
autocomplete={searchInformation.autocomplete}
onSubmit={searchInformation.onHandleSearch}
placeholder={
device.mediaIsPhone ? '' : searchInformation.placeholder
placeholder={searchInformation.placeholder
}
isClearable={searchInformation.isClearable}
title={searchInformation.title}
Expand Down
4 changes: 2 additions & 2 deletions fe-piattaforma/src/pages/administrator/CitizensArea/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export const TableHeading: TableHeadingI[] = [
size: 'small',
},
{
label: 'N. servizi utilizzati',
label: 'Numero servizi',
field: 'numeroServizi',
},
{
label: 'N. questionari compilati',
label: 'Numero questionari compilati',
field: 'numeroQuestionariCompilati',
},
{
Expand Down

0 comments on commit 8b978b4

Please sign in to comment.