Skip to content

Commit

Permalink
fix: fix for complete pr
Browse files Browse the repository at this point in the history
  • Loading branch information
leleOFA committed Feb 28, 2025
1 parent 8e66a08 commit 7bf0807
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 56 deletions.
29 changes: 0 additions & 29 deletions packages/pn-commons/src/components/A11yContainerInvisible.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions packages/pn-commons/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ import SideMenu from './SideMenu/SideMenu';
import SnackBar from './SnackBar/SnackBar';
import TabPanel from './TabPanel';
import TitleBox from './TitleBox';
import A11yContainerInvisible from './A11yContainerInvisible';

export {
A11yContainerInvisible,
ApiError,
ApiErrorWrapper,
AppMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
Typography,
} from '@mui/material';
import {
A11yContainerInvisible,
ApiErrorWrapper,
EmptyState,
KnownSentiment,
Expand Down Expand Up @@ -380,14 +379,6 @@ const DelegationsOfTheCompany = () => {
/>
</Grid>
<Grid item xs={12} lg={3} sx={{ justifyContent: 'space-between' }}>
{formik.values.groups && (
<A11yContainerInvisible
field={
'gruppi selezionati, ' +
formik.values.groups.map((group) => group.name).join(', ')
}
></A11yContainerInvisible>
)}
{/* c''e ancora il bottone anche se non é raggiungibile o cliccabile */}
<PnAutocomplete
id="groups"
Expand Down Expand Up @@ -429,14 +420,6 @@ const DelegationsOfTheCompany = () => {
onInputChange={(_event, newInputValue) => setGroupInputValue(newInputValue)}
/>
</Grid>
{formik.values.groups && (
<A11yContainerInvisible
field={
'gruppi selezionati, ' +
formik.values.groups.map((group) => group.name).join(', ')
}
></A11yContainerInvisible>
)}
<Grid item xs={12} lg={3}>
<TextField
label={t('deleghe.table.status')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Fragment, useState } from 'react';
import { Fragment } from 'react';
import { useTranslation } from 'react-i18next';
import { Button, Grid } from '@mui/material';
import { A11yContainerInvisible, CustomMobileDialogAction } from '@pagopa-pn/pn-commons';
import { CustomMobileDialogAction } from '@pagopa-pn/pn-commons';

type Props = {
filtersApplied: boolean;
Expand All @@ -17,8 +17,7 @@ const FilterNotificationsFormActions = ({
isInitialSearch,
}: Props) => {
const { t } = useTranslation(['common']);
const [feedbackSubmit, setFeedbackSubmit] = useState(false);
const [feedbackCancel, setFeedbackCancel] = useState(false);


const handleCancel = () =>{
setFeedbackCancel(true);
Expand All @@ -38,9 +37,6 @@ const FilterNotificationsFormActions = ({
>
{t('button.filtra')}
</Button>
{feedbackSubmit && (
<A11yContainerInvisible field="Azione completata" ariaLive='assertive' role='alert'></A11yContainerInvisible>
)}
</Grid>
);

Expand All @@ -54,7 +50,6 @@ const FilterNotificationsFormActions = ({
>
{t('button.annulla filtro')}
</Button>
{feedbackCancel && <A11yContainerInvisible field="Cancellazione Completata" ariaLive='assertive' role='alert'></A11yContainerInvisible>}
</Grid>
);

Expand Down

0 comments on commit 7bf0807

Please sign in to comment.