Skip to content

Commit

Permalink
Fixing issues on Identity and Subs blocks (#1808)
Browse files Browse the repository at this point in the history
fixing issues on Identity and Subs blocks
  • Loading branch information
LauraPinilla authored Nov 27, 2023
1 parent d2e952e commit 14a1b74
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function useSocialSignIn(redirectURL, onError = () => {}, isOIDC) {
Identity.signInWithGoogle(credentialResponse).then(() => {
if (isOIDC) {
loginByOIDC();
} else {
const validatedURL = validateURL(redirectURL);
window.location = validatedURL;
}
}),
auto_select: true,
Expand Down
2 changes: 1 addition & 1 deletion blocks/identity-block/features/login/default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Login = ({ customFields }) => {
loginByOIDC();
} else {
const validatedURL = validateURL(loginRedirect);
window.location = validateURL;
window.location = validatedURL;
}
})
.catch(() => setError(phrases.t("identity-block.login-form-error")))
Expand Down
26 changes: 0 additions & 26 deletions blocks/subscriptions-block/components/ContactInfo/google.svg

This file was deleted.

4 changes: 1 addition & 3 deletions blocks/subscriptions-block/components/ContactInfo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useRef } from "react";

import { usePhrases, Heading, Input, Button, Stack, Image, Icon } from "@wpmedia/arc-themes-components";
import countryCodes from "./countryCodes";
import GoogleIcon from "./google.svg";

const ContactInfo = ({ callback, user, signedInIdentity, logoutCallback, className }) => {
const formRef = useRef();
Expand Down Expand Up @@ -50,8 +49,7 @@ const ContactInfo = ({ callback, user, signedInIdentity, logoutCallback, classNa
case "google":
return (
<div className={`${className}__identity-row`}>
{/* {TO-DO: Change the Icon to Google <Icon name="Google"/> } */}
<Image alt="Google" title="Google" src={GoogleIcon} />
<Icon name="GoogleColor"/>
<span>
{phrases.t("checkout-block.identity-social", {
email: user.email,
Expand Down
2 changes: 1 addition & 1 deletion blocks/subscriptions-block/components/OfferCard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const OfferCard = ({
className={`${className}__card--features--feature-item`}
key={`feat-${feat.featureText}`}
>
<Icon name="ChevronRight" />
<Icon name="Check" />
<span dangerouslySetInnerHTML={{ __html: feat.featureText }} />
</li>
))}
Expand Down
2 changes: 2 additions & 0 deletions blocks/subscriptions-block/utils/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const CURRECY_MAP = {
KRW: "₩",
MXN: "$",
BRL: "R$",
CAD: "CA$",
GBP: "£"
};

const currency = (name) => CURRECY_MAP[name] || null;
Expand Down

0 comments on commit 14a1b74

Please sign in to comment.