-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/Confirmation modal adding special contact + handle PEC in validation on Management Page #1485
base: develop
Are you sure you want to change the base?
Conversation
…been set or pec is validating
…l contact for a sender that already has one set
… into refactor/last-changes
…anager when pec is validating
> | ||
{onConfirmLabel} | ||
</Button> | ||
{slotsProps?.closeButton?.onClick && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this use slots as done for wizard component
{onCloseLabel} | ||
</Button> | ||
)} | ||
{slotsProps?.confirmButton?.onClick && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before
import { AddressType, ChannelType, DigitalAddress, Sender } from '../../../models/contacts'; | ||
import LegalContactAssociationDialog from '../LegalContactAssociationDialog'; | ||
|
||
vi.mock('react-i18next', () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed
<ConfirmationModal | ||
open={open} | ||
title={t(`special-contacts.legal-association-title${blockConfirmation}`, { ns: 'recapiti' })} | ||
// slotsProps={slotsProps ?? undefined} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
<ConfirmationModal | ||
open={open} | ||
title={t(`special-contacts.legal-association-title${blockConfirmation}`, { ns: 'recapiti' })} | ||
// slotsProps={slotsProps ?? undefined} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
if (oldAddress) { | ||
setModalOpen({ | ||
type: ModalType.CONFIRM_LEGAL_ASSOCIATION, | ||
data: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need pass this data through state and not directly through modal properties?
if (oldAddress) { | ||
setModalOpen({ | ||
type: ModalType.CONFIRM_LEGAL_ASSOCIATION, | ||
data: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as for pg
Short description
This PR contains the code to implement the functionalities described below
List of changes proposed in this pull request