Fix navigation - The Bible button now clears version selection and returns to version selector
This commit is contained in:
@@ -382,7 +382,10 @@ function App() {
|
||||
<Book className="h-6 w-6 sm:h-8 sm:w-8 text-blue-600" />
|
||||
<div className="flex flex-col">
|
||||
<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"
|
||||
>
|
||||
The Bible
|
||||
|
||||
Reference in New Issue
Block a user