refactor: rename Settings tab to About, remove SettingsPage component
This commit is contained in:
1 parent
872fb889b6
commit
15e81a8957
3 files changed
+13
-13
No files matched your search
+3
-3
@@ -8,7 +8,7 @@ import BottomNav from '@/components/BottomNav';
|
||||
import DailyEntry from '@/components/DailyEntry';
|
||||
import CalendarView from '@/components/CalendarView';
|
||||
import ReflectionsList from '@/components/ReflectionsList';
|
||||
import SettingsPage from '@/components/SettingsPage';
|
||||
import AboutPage from '@/components/AboutPage';
|
||||
import HomePage from '@/components/HomePage';
|
||||
import AnsweredPrayers from '@/components/AnsweredPrayers';
|
||||
import { db } from '@/lib/firebase';
|
||||
@@ -26,7 +26,7 @@ interface Prayer {
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
const [activeTab, setActiveTab] = useState<'home' | 'compose' | 'journal' | 'answered' | 'reflections' | 'settings'>('home');
|
||||
const [activeTab, setActiveTab] = useState<'home' | 'compose' | 'journal' | 'answered' | 'reflections' | 'about'>('home');
|
||||
const [prayers, setPrayers] = useState<Prayer[]>([]);
|
||||
const [editingPrayer, setEditingPrayer] = useState<Prayer | null>(null);
|
||||
|
||||
@@ -240,7 +240,7 @@ export default function Home() {
|
||||
/>
|
||||
)}
|
||||
|
||||
{activeTab === 'settings' && <SettingsPage userEmail={user.email || undefined} />}
|
||||
{activeTab === 'about' && <AboutPage userEmail={user.email || undefined} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user