📚 ${prayer.text}
-Here are all your active prayers and praises:
-"Pray without ceasing"- — 1 Thessalonians 5:17 -
diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx deleted file mode 100644 index 577c32b..0000000 --- a/src/app/admin/page.tsx +++ /dev/null @@ -1,33 +0,0 @@ -'use client'; - -import { useAuth } from '@/context/AuthContext'; -import Admin from '@/components/Admin'; -import Navbar from '@/components/Navbar'; -import { useRouter } from 'next/navigation'; -import { useEffect } from 'react'; - -export default function AdminPage() { - const { user, isAdmin } = useAuth(); - const router = useRouter(); - - useEffect(() => { - if (!user) { - router.push('/'); - } else if (!isAdmin) { - router.push('/'); - } - }, [user, isAdmin, router]); - - if (!user || !isAdmin) { - return null; - } - - return ( -
Here are all your active prayers and praises:
-"Pray without ceasing"- — 1 Thessalonians 5:17 -
You have no active prayers. Great job staying on top of your prayer life!
-"Pray without ceasing"- — 1 Thessalonians 5:17 -
Celebrating answered prayers and praises
-{testimony.text}
- - {testimony.tags && testimony.tags.length > 0 && ( -- {filter === 'all' - ? 'Answered prayers will appear here to inspire others.' - : `No answered ${filter === 'prayer' ? 'prayers' : 'praises'} yet.` - } -
-