Skip to content

Commit

Permalink
Login methods review updates and minor CSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Apr 13, 2024
1 parent 77b151f commit ef65a20
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/static/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const LoginFactor = ({
if (res.status === "RECIPE_NOT_CONFIGURED_ON_BACKEND_SDK_ERROR") {
setError(res.message);
} else if (res.status === "MFA_NOT_INITIALIZED_ERROR") {
setMfaError?.("MFA_NOT_INITIALIZED");
setMfaError!("MFA_NOT_INITIALIZED");
} else {
throw new Error(res.status);
}
Expand All @@ -175,15 +175,15 @@ const LoginFactor = ({
}

if (res.status === "OK" && res.isMFARequirementsForAuthOverridden) {
setMfaError?.("MFA_REQUIREMENTS_FOR_AUTH_OVERRIDDEN");
setMfaError!("MFA_REQUIREMENTS_FOR_AUTH_OVERRIDDEN");
}

// If this is not a MFA related error then clear the error
if (
(res.status === "OK" && !res.isMFARequirementsForAuthOverridden) ||
res.status === "RECIPE_NOT_CONFIGURED_ON_BACKEND_SDK_ERROR"
) {
setMfaError?.(null);
setMfaError!(null);
}
}
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@
flex-direction: column;
gap: 15px;

@media screen and (max-width: 480px) {
gap: 0px;
}

&__divider {
display: block;
height: 0px;
Expand All @@ -175,10 +179,22 @@
display: flex;
gap: 10px;
align-items: center;

@media screen and (max-width: 480px) {
align-items: flex-end;

.delete-cross-button {
transform: translateY(-5px);
}
}
}

&__footer {
margin-left: 128px;
@media screen and (max-width: 480px) {
margin-left: 0px;
margin-top: 18px;
}
}

&__add-new {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
font-size: 14px;
color: var(--color-secondary-text);
min-width: max-content;

@media screen and (max-width: 480px) {
min-width: unset;
}
}

&__required {
Expand Down

0 comments on commit ef65a20

Please sign in to comment.