Update to latest NKJV logo version
- New improved NKJV logo for better branding - Fix circular dependency in version state management - Version selection now loads books properly without race conditions
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 300 KiB |
@@ -40,12 +40,11 @@ function App() {
|
||||
const versionParam = urlParams.get('version');
|
||||
if (versionParam && (versionParam === 'esv' || versionParam === 'nkjv')) {
|
||||
setSelectedVersion(versionParam);
|
||||
} else if (!versionParam && selectedVersion && location.pathname === '/') {
|
||||
// If we're back at home without version param and had a version selected,
|
||||
// this likely means user hit back and should see version selector
|
||||
} else if (location.pathname === '/' && !urlParams.get('version')) {
|
||||
// If we're at home without version param, clear selection
|
||||
setSelectedVersion('');
|
||||
}
|
||||
}, [location.search, selectedVersion]);
|
||||
}, [location.search]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('App useEffect triggered');
|
||||
|
||||
Reference in New Issue
Block a user