Fix navigation - The Bible button now clears version selection and returns to version selector

This commit is contained in:
Ryderjj89
2025-09-28 14:05:59 -04:00
parent 253c6da8b1
commit a94736b9e5

View File

@@ -382,7 +382,10 @@ function App() {
<Book className="h-6 w-6 sm:h-8 sm:w-8 text-blue-600" /> <Book className="h-6 w-6 sm:h-8 sm:w-8 text-blue-600" />
<div className="flex flex-col"> <div className="flex flex-col">
<button <button
onClick={() => navigate('/')} onClick={() => {
setSelectedVersion(''); // Clear version selection to return to version selector
navigate('/');
}}
className="text-lg sm:text-xl font-bold text-gray-900 dark:text-gray-100 hover:text-blue-600 dark:hover:text-blue-400" className="text-lg sm:text-xl font-bold text-gray-900 dark:text-gray-100 hover:text-blue-600 dark:hover:text-blue-400"
> >
The Bible The Bible