chore: update social button icons

This commit is contained in:
Tristan Yang
2023-06-22 22:26:17 +08:00
parent 53695252b6
commit 3921def6bb
6 changed files with 20 additions and 7 deletions
+2 -2
View File
@@ -96,11 +96,11 @@ export default function MetamaskLoginButton({
};
return (
<Button
className="flex ghost flex-center gap-2"
className="flex ghost flex-center gap-2 relative"
disabled={requesting}
onClick={handleMetamaskLogin}
>
<img className="w-6 h-6" src={metamaskSvg} alt="meta mask icon" />
<img className="w-6 h-6 absolute left-4" src={metamaskSvg} alt="meta mask icon" />
{type == "login" ? t("login.metamask") : t("reg.metamask")}
</Button>
);
+3 -1
View File
@@ -8,6 +8,7 @@ import Modal from "@/components/Modal";
import StyledButton from "@/components/styled/Button";
import Button from "@/components/styled/Button";
import StyledModal from "@/components/styled/Modal";
import IconIODC from "@/assets/icons/oidc/icon.svg";
import OidcLoginEntry from "./OidcLoginEntry";
interface IProps {
@@ -22,11 +23,12 @@ const OidcLoginButton: FC<IProps> = ({ issuers, type = "login" }) => {
return (
<>
<Button
className="flex ghost flex-center gap-2"
className="flex ghost flex-center gap-2 relative"
onClick={() => {
setModal(true);
}}
>
<IconIODC className="w-6 h-6 absolute left-4" />
{type == "login" ? t("login.oidc") : t("reg.oidc")}
</Button>
{modal && (