Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
UyLeQuoc committed Feb 19, 2023
1 parent 64a269d commit 741e2fa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/CartIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Cart(props:StateProps) : JSX.Element {
const router = useRouter();
return (
<div className='flex justify-center align-middle' onClick={() => router.push("/order")}>
<Badge count={props.user.cart.length} color="#FF4206" className='cursor-pointer'>
<Badge count={props.user.cart.length} color="#FF4206" className='cursor-pointer test'>
<ShoppingCartOutlined className='cart-icon'/>
</Badge>
</div>
Expand Down
25 changes: 17 additions & 8 deletions components/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { Button, Card } from "antd";
import { Button, Card, ConfigProvider } from "antd";
import { useSignInWithGoogle } from "react-firebase-hooks/auth";
import { auth } from "../utils/firebase"

Expand Down Expand Up @@ -39,13 +39,22 @@ function LoginPage(): JSX.Element {
<img src="/main/logo.svg" height={100} width={100} />

<h1>Đăng nhập</h1>
<Button
type="primary"
size="large"
onClick={signIn}
>
Sign In With Google
</Button>
<ConfigProvider
theme={{
token: {
colorPrimary: '#FF4206',
},
}}
>
<Button
type="primary"
size="large"
onClick={signIn}
>
Sign In With Google
</Button>
</ConfigProvider>

</Card>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions styles/components/product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@
}
}

.test{
display: flex;
align-items: center;
}

1 comment on commit 741e2fa

@vercel
Copy link

@vercel vercel bot commented on 741e2fa Feb 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.