diff --git a/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/EditableDetailsV2.tsx b/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/EditableDetailsV2.tsx index 73c7ed9be4..47709c7051 100644 --- a/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/EditableDetailsV2.tsx +++ b/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/EditableDetailsV2.tsx @@ -65,6 +65,11 @@ export const EditableDetailsV2: FunctionComponent = ({ @@ -153,8 +158,8 @@ export const EditableDetailV2 = ({ {...(typeof minimum === 'number' && { min: minimum })} {...(typeof maximum === 'number' && { max: maximum })} {...(pattern && { pattern })} - {...(inputType === 'datetime-local' && { step: '1' })} - type={inputType} + {...(computedInputType === 'datetime-local' && { step: '1' })} + type={computedInputType} value={displayValue} onChange={handleInputChange} autoComplete={'off'} diff --git a/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/types.ts b/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/types.ts index c26882fe22..ef03c12655 100644 --- a/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/types.ts +++ b/apps/backoffice-v2/src/common/components/organisms/EditableDetailsV2/types.ts @@ -30,6 +30,7 @@ export interface IBaseEditableDetailsV2Config { disabled: boolean; }; }; + inputTypes?: Record; } export interface IEditableDetailsV2ConfigWithBlacklist extends IBaseEditableDetailsV2Config { diff --git a/apps/backoffice-v2/src/lib/blocks/components/KycBlock/hooks/useKycBlock/useKycBlock.tsx b/apps/backoffice-v2/src/lib/blocks/components/KycBlock/hooks/useKycBlock/useKycBlock.tsx index 9e72a13a21..fc64e0e2dd 100644 --- a/apps/backoffice-v2/src/lib/blocks/components/KycBlock/hooks/useKycBlock/useKycBlock.tsx +++ b/apps/backoffice-v2/src/lib/blocks/components/KycBlock/hooks/useKycBlock/useKycBlock.tsx @@ -414,6 +414,9 @@ export const useKycBlock = ({ disabled: !caseState.writeEnabled, }, }, + inputTypes: { + dateOfBirth: 'date', + }, }, }, })