Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

prod #106

Merged
merged 2 commits into from
Aug 5, 2023
Merged

prod #106

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ const Footer = () => {
</p>
</div>
</div>
<button
onClick={isAuthenticated ? logout : login}
className="text-enter cursor-pointer pb-4 pt-6 text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
>
{isAuthenticated ? 'ออกจาก' : 'เข้าสู่'}ระบบ
</button>
<div className="order-2 flex flex-col items-center text-center">
<p className="mb-1 font-normal">ขอขอบคุณ</p>
{/* size base on figma */}
Expand Down Expand Up @@ -148,6 +142,13 @@ const Footer = () => {
</div>
</div>
</div>

<button
onClick={isAuthenticated ? logout : login}
className="w-full cursor-pointer pb-4 pt-6 text-center text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
>
{isAuthenticated ? 'ออกจาก' : 'เข้าสู่'}ระบบ
</button>
</div>
<div className="flex w-full items-center justify-center gap-4 bg-black p-3">
<Link
Expand Down
2 changes: 1 addition & 1 deletion src/pages/oauth/google.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Google() {

useEffect(() => {
if (isReady) {
if (query?.ticket) {
if (query?.code) {
setMessage('Logging in...');
handleLogin(query.code as string);
} else {
Expand Down