From 878b2d1739508044905c281e0eab079a415525d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Obed=E2=9C=A8=E2=9C=A8?= <135765970+obed-smart@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:45:53 +0100 Subject: [PATCH 1/5] Update Footer.tsx --- components/landingpage/landing/Footer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/landingpage/landing/Footer.tsx b/components/landingpage/landing/Footer.tsx index a128671..98570a6 100644 --- a/components/landingpage/landing/Footer.tsx +++ b/components/landingpage/landing/Footer.tsx @@ -66,7 +66,7 @@ export const Footer = () => {
- +

Fast, secure, and borderless payments for Nigerian businesses.

From da55378b90561284ad648baa09bc6be7f9cfff4e Mon Sep 17 00:00:00 2001 From: chukwu obed Date: Tue, 7 Oct 2025 21:23:33 +0100 Subject: [PATCH 2/5] refactor: Updated the bank account section UI and and used demo data for the profile component --- components/auth/protected-route.tsx | 4 +- components/context/AuthContext.tsx | 2 +- components/landingpage/landing/Footer.tsx | 99 ++++--- components/landingpage/landing/hero.tsx | 4 +- components/profile/bank-accounts.tsx | 318 +++++++++++++++------- 5 files changed, 268 insertions(+), 159 deletions(-) diff --git a/components/auth/protected-route.tsx b/components/auth/protected-route.tsx index 34bf437..05ad305 100644 --- a/components/auth/protected-route.tsx +++ b/components/auth/protected-route.tsx @@ -27,10 +27,10 @@ export default function ProtectedRoute({ children }: ProtectedRouteProps) { setIsChecking(false); } else { // Only redirect if we're not already on the auth page - if (!pathname.includes('/auth')) { + if (!pathname.includes('/')) { console.log('Not authenticated - redirecting to auth'); // Use replace: false to allow back button to work properly - router.push("/auth"); + router.push("/"); } setIsChecking(false); } diff --git a/components/context/AuthContext.tsx b/components/context/AuthContext.tsx index 7adfa02..fff414b 100644 --- a/components/context/AuthContext.tsx +++ b/components/context/AuthContext.tsx @@ -268,7 +268,7 @@ export const AuthProvider: React.FC = ({ children }) => { setToken(null); setUser(null); setIsLoading(false); - router.push("/auth"); + router.push("/"); }; const register = async ( diff --git a/components/landingpage/landing/Footer.tsx b/components/landingpage/landing/Footer.tsx index 496dbb0..bc19d92 100644 --- a/components/landingpage/landing/Footer.tsx +++ b/components/landingpage/landing/Footer.tsx @@ -1,91 +1,83 @@ -import { HugeiconsIcon } from "@hugeicons/react"; +import { HugeiconsIcon } from '@hugeicons/react'; import { DiscordFreeIcons, NewTwitterIcon, TelegramFreeIcons, -} from "@hugeicons/core-free-icons"; +} from '@hugeicons/core-free-icons'; -import Link from "next/link"; -import { Button } from "@/components/ui/buttons"; +import Link from 'next/link'; +import { Button } from '@/components/ui/buttons'; export const Footer = () => { - - const footerLinks = [ { - title: "Product", + title: 'Product', links: [ - { name: "Features", href: "#features" }, - { name: "How It Works", href: "#how-it-works" }, - { name: "Privacy Policy", href: "#privacy" }, - { name: "FAQs", href: "#faq" }, - { name: "Contacts", href: "/contact" }, + { name: 'Features', href: '#features' }, + { name: 'How It Works', href: '#how-it-works' }, + { name: 'Privacy Policy', href: '#privacy' }, + { name: 'FAQs', href: '#faq' }, + { name: 'Contacts', href: '/contact' }, ], }, { - title: "Company", + title: 'Company', links: [ - { name: "About", href: "/about" }, - { name: "Blog", href: "/blog" }, - { name: "Careers", href: "#" }, + { name: 'About', href: '/about' }, + { name: 'Blog', href: '/blog' }, + { name: 'Careers', href: '#' }, ], }, { - title: "Legal", + title: 'Legal', links: [ - { name: "Privacy", href: "#privacy" }, - { name: " Terms of Service", href: "#terms" }, - { name: "Security", href: "#" }, + { name: 'Privacy', href: '#privacy' }, + { name: ' Terms of Service', href: '#terms' }, + { name: 'Security', href: '#' }, ], }, - ] - + ]; const socials = [ { - name: "X", + name: 'X', icon: , - link: "https://www.x.com", + link: 'https://www.x.com', }, { - name: "Discord", + name: 'Discord', icon: , - link: "https://www.discord.com", + link: 'https://www.discord.com', }, { - name: "Telegram", + name: 'Telegram', icon: , - link: "https://www.telegram.com", + link: 'https://www.telegram.com', }, ]; - - return ( -