Skip to content
Snippets Groups Projects
Commit fd26955f authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: clean code

parent 138d281c
No related branches found
No related tags found
3 merge requests!28Merge fix from dev,!27Dev,!25Features/us150 review of konnectors
......@@ -70,22 +70,21 @@ const KonnectorLaunch: React.FC<KonnectorLaunchProps> = ({
}
}, [])
// TODO - SUCCESS SCREEN + rename of class
return (
<div className="kload-content">
<div className="klaunch-content">
{!state ? (
<>
<Lottie options={loadingOptions} height={50} width={50} />
<div className="kload-content-text kload-content-text-center text-16-normal">
<div className="klaunch-content-text klaunch-content-text-center text-16-normal">
<div>{t('KONNECTORCONFIG.PLZ_WAIT')}</div>
</div>
<div className="kload-content-text text-16-normal">
<div className="klaunch-content-text text-16-normal">
<div>{t('KONNECTORCONFIG.LOADING_DATA')}</div>
</div>
</>
) : (
<>
<div className="konnector-info-txt">
<div className="klaunch-info-txt">
{state === ERROR_EVENT
? t('KONNECTORCONFIG.ERROR_DATA')
: t('KONNECTORCONFIG.SUCCESS')}
......
......@@ -65,8 +65,6 @@ const KonnectorLoginForm: React.FC<KonnectorLoginFormProps> = ({
}
const update = async () => {
// TODO - update account
console.log('Update')
const auth = {
login: login,
password: password,
......@@ -97,7 +95,6 @@ const KonnectorLoginForm: React.FC<KonnectorLoginFormProps> = ({
}
useEffect(() => {
console.log(fluidConfig.konnectorConfig.slug, account)
if (account) {
const auth: AuthLoginData = account.auth
if (auth.login) {
......
......@@ -58,7 +58,6 @@ const KonnectorResult: React.FC<KonnectorResultProps> = ({
setUpdating(false)
}
// TODO - rework
const updateKonnector = async () => {
setUpdating(true)
setStatus('')
......
......@@ -143,23 +143,23 @@
}
// KonnectorLoading
.kload-content {
.klaunch-content {
margin: 0.5rem 1.5rem;
@media #{$large-phone} {
margin: 0.5rem 0;
}
.kload-content-text {
.klaunch-content-text {
color: $text-bright;
margin: 1rem 0;
}
.kload-content-text-center {
.klaunch-content-text-center {
text-align: center;
}
.klaunch-info-txt {
margin-top: 1.5rem;
}
}
.konnector-info-txt {
margin-top: 1.5rem;
}
.state-icon {
height: 22px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment