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

Commit

Permalink
Merge pull request #105 from isd-sgcu/dev
Browse files Browse the repository at this point in the history
PRODDDDD
  • Loading branch information
betich authored Aug 5, 2023
2 parents 3e170ec + 36ba0dc commit 19e1b25
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import Ptt from '@/public/images/Ptt.png';
import ParkOrigin from '@/public/images/ParkOrigin.png';
import ThaiBev from '@/public/images/ThaiBev.png';
import WuaLuanLuan from '@/public/images/Wua.png';
import { useAuth } from '@/context/AuthContext';
const Footer = () => {
const { login, logout, isAuthenticated } = useAuth();

return (
<footer className="relative w-full">
<div className="relative m-0 w-full bg-gray-900 pt-3 lg:p-4">
Expand All @@ -37,6 +40,12 @@ 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 @@ -142,18 +151,24 @@ const Footer = () => {
</div>
<div className="flex w-full items-center justify-center gap-4 bg-black p-3">
<Link
className="text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
className="cursor-pointer text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
href="/terms-conditions"
>
เงื่อนไขการใช้งาน
</Link>

<Link
className="text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
className="cursor-pointer text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
href="/privacy-policy"
>
นโยบายความเป็นส่วนตัว
</Link>
<Link
className="cursor-pointer text-xs font-light text-gray-200 underline underline-offset-2 hover:no-underline"
href="/pdpa"
>
นโยบายคุ้มครองข้อมูลส่วนบุคคล
</Link>
</div>
</footer>
);
Expand Down

0 comments on commit 19e1b25

Please sign in to comment.