2694-fix(front): Replace "Continue with Google" monochrome logo by colourful logo (#2724)

* Replaced Google mono logo with colourful logo

* Removed stroke and increased size of logo to 20

* Changed default size of Google Icon to 20

* added default value for size from theme
This commit is contained in:
Anchit Sinha
2023-11-28 23:05:13 +05:30
committed by GitHub
parent 5fab7c9a19
commit 0395ea077d
3 changed files with 25 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { IconBrandGoogle } from '@/ui/display/icon';
import { IconGoogle } from '@/ui/display/icon/components/IconGoogle';
import { MainButton } from '@/ui/input/button/components/MainButton';
import { TextInput } from '@/ui/input/components/TextInput';
import { AnimatedEaseIn } from '@/ui/utilities/animation/components/AnimatedEaseIn';
@ -95,12 +95,7 @@ export const SignInUpForm = () => {
{authProviders.google && (
<>
<MainButton
Icon={() => (
<IconBrandGoogle
size={theme.icon.size.md}
stroke={theme.icon.stroke.lg}
/>
)}
Icon={() => <IconGoogle size={theme.icon.size.lg} />}
title="Continue with Google"
onClick={signInWithGoogle}
fullWidth

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,14 @@
import { useTheme } from '@emotion/react';
import { ReactComponent as IconGoogleRaw } from '../assets/google-icon.svg';
interface IconGoogleProps {
size?: number;
}
export const IconGoogle = (props: IconGoogleProps): JSX.Element => {
const theme = useTheme();
const size = props.size ?? theme.icon.size.lg;
return <IconGoogleRaw height={size} width={size} />;
};