Skip to content

Commit

Permalink
feat(fe-piattaforma): fix and improvements programs projects sections
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogheart1 authored Jul 1, 2022
2 parents 2c4fa2a + e090047 commit bee2af1
Show file tree
Hide file tree
Showing 17 changed files with 560 additions and 264 deletions.
2 changes: 1 addition & 1 deletion fe-piattaforma/mock/listaQuestionari.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"descrizione": "Descrizione 1",
"id": "1",
"nome": "Questionario 1",
"stato": "ATTIVO"
"stato": "NON ATTIVO"
},
{
"dataUltimaModifica": "2022-06-27T12:49:26.762Z",
Expand Down
9 changes: 6 additions & 3 deletions fe-piattaforma/src/components/EmptySection/emptySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ const EmptySection: React.FC<EmptySectionI> = ({
'w-100'
)}
>
<Icon icon={icon || 'it-note'} className='empty-section__icon' />
<h3>{title || 'Questa sezione è ancora vuota'}</h3>
{subtitle && <h4>{subtitle}</h4>}
<Icon
icon={icon || 'it-warning-circle'}
className='empty-section__icon'
/>
<h1 className='h5'>{title || 'Questa sezione è ancora vuota'}</h1>
{subtitle && <h2 className='h6'>{subtitle}</h2>}
{buttons && <ButtonsBar buttons={buttons} />}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion fe-piattaforma/src/components/Table/view/tableDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const TableDesktop: React.FC<TableI> = (props) => {
</td>
))}
{onActionClick ? (
<td>
<td className='px-0'>
<div
className={clsx(
'd-flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const Authorities: React.FC = () => {
/* {...ctaProgetti}
cta={newGestoreProgetto} */
>
<div>
<div className='mt-5'>
<Table
{...tableValues}
id='table'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ const Programs = () => {
const { pageNumber } = pagination;

const getAllFilters = () => {
dispatch(
GetEntityFilterValues({ entity, dropdownType: 'stati' })
);
dispatch(
GetEntityFilterValues({ entity, dropdownType: 'policies' })
);
dispatch(GetEntityFilterValues({ entity, dropdownType: 'stati' }));
dispatch(GetEntityFilterValues({ entity, dropdownType: 'policies' }));
};

useEffect(() => {
Expand Down Expand Up @@ -134,16 +130,13 @@ const Programs = () => {
);
};

const handleDropdownFilters = (
values: FilterI[],
filterKey: string,
) => {
const handleDropdownFilters = (values: FilterI[], filterKey: string) => {
dispatch(setEntityFilters({ [filterKey]: [...values] }));
};

const handleOnSearchDropdownOptions = (
searchValue: formFieldI['value'],
filterId: string,
filterId: string
) => {
const searchDropdownValues = [...searchDropdown];
if (
Expand Down
Loading

0 comments on commit bee2af1

Please sign in to comment.