diff --git a/src/app/page.tsx b/src/app/page.tsx index 8eb693f..074ee71 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -23,7 +23,7 @@ interface Prayer { } export default function Home() { - const [activeTab, setActiveTab] = useState<'home' | 'journal' | 'reflections' | 'settings'>('home'); + const [activeTab, setActiveTab] = useState<'home' | 'compose' | 'journal' | 'reflections' | 'settings'>('home'); const [prayers, setPrayers] = useState([]); const [editingPrayer, setEditingPrayer] = useState(null); @@ -194,26 +194,25 @@ export default function Home() { p.date === new Date().toISOString().split('T')[0]).length} - onStartPraying={() => setActiveTab('journal')} + onStartPraying={() => setActiveTab('compose')} + /> + )} + + {activeTab === 'compose' && ( + )} {activeTab === 'journal' && ( - <> - -
- -
- + )} {activeTab === 'reflections' && ( diff --git a/src/components/BottomNav.tsx b/src/components/BottomNav.tsx index e20a7e5..fb8b568 100644 --- a/src/components/BottomNav.tsx +++ b/src/components/BottomNav.tsx @@ -4,8 +4,8 @@ import React from 'react'; import { useAuth } from '@/context/AuthContext'; interface BottomNavProps { - activeTab: 'home' | 'journal' | 'reflections' | 'settings'; - onTabChange: (tab: 'home' | 'journal' | 'reflections' | 'settings') => void; + activeTab: 'home' | 'compose' | 'journal' | 'reflections' | 'settings'; + onTabChange: (tab: 'home' | 'compose' | 'journal' | 'reflections' | 'settings') => void; } export default function BottomNav({ activeTab, onTabChange }: BottomNavProps) { @@ -13,6 +13,7 @@ export default function BottomNav({ activeTab, onTabChange }: BottomNavProps) { const navItems = [ { id: 'home' as const, label: 'Home', icon: '🏠' }, + { id: 'compose' as const, label: 'Compose', icon: '✍️' }, { id: 'journal' as const, label: 'Journal', icon: '📅' }, { id: 'reflections' as const, label: 'Reflections', icon: '📖' }, { id: 'settings' as const, label: 'Settings', icon: '⚙️' },