diff --git a/src/components/ContentComponents/Konnector/KonnectorLaunch.tsx b/src/components/ContentComponents/Konnector/KonnectorLaunch.tsx index 42fa86a68851d7847ee8c313fa7e46fac0b7fd9c..7ab7567a0a68b7abde854c616d005b0c1ee49d5d 100644 --- a/src/components/ContentComponents/Konnector/KonnectorLaunch.tsx +++ b/src/components/ContentComponents/Konnector/KonnectorLaunch.tsx @@ -13,6 +13,7 @@ import { Trigger } from 'doctypes' import Lottie from 'react-lottie' import * as loadingData from 'assets/anims/bounceloading.json' +import StyledButton from 'components/CommonKit/Button/StyledButton' const loadingOptions = { loop: true, @@ -85,8 +86,29 @@ const KonnectorLaunch: React.FC<KonnectorLaunchProps> = ({ ) : ( <> <div> - {/* // Add success when state <> ERROR_EVENT - // Add Error when state = ERROR_EVENT */} + {state === ERROR_EVENT ? ( + <div> + {t('KONNECTORCONFIG.ERROR_ACCOUNT_CREATION')} + <StyledButton + type="button" + color="primary" + onClick={handleClick} + > + <div>{t('KONNECTORCONFIG.OK')}</div> + </StyledButton> + </div> + ) : ( + <div> + {t('KONNECTORCONFIG.SUCCESS')} + <StyledButton + type="button" + color="primary" + onClick={handleClick} + > + <div>{t('KONNECTORCONFIG.OK')}</div> + </StyledButton> + </div> + )} </div> </> )} diff --git a/src/locales/en.json b/src/locales/en.json index 4ad007114cc0be128f08315417467f6ada1f5e49..7c4ab690af120c5bec06ea79a30daee778110a9a 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -125,7 +125,9 @@ "NOT_INSTALLED": "Le connecteur n'est pas installé. Veuillez l'installer en cliquant sur le bouton ci-dessous.", "ERROR_NO_LOGIN_PASSWORD": "Identifiant et mot de passe requis", "ERROR_ACCOUNT_CREATION": "Une erreur est survenue, veuillez essayer de nouveau", - "ERROR_LOGIN_FAILED": "Identifiants invalides" + "ERROR_LOGIN_FAILED": "Identifiants invalides", + "SUCCESS": "Félicitations, la connexion a été effectuée", + "OK": "Ok" }, "INDICATOR": { "DISPLAY_OTHER_FLUID": "Voir",