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:
Ryderjj89
2025-09-28 14:46:19 -04:00
parent a9f6843ddd
commit 163532158f
2 changed files with 3 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 300 KiB

View File

@@ -40,12 +40,11 @@ function App() {
const versionParam = urlParams.get('version'); const versionParam = urlParams.get('version');
if (versionParam && (versionParam === 'esv' || versionParam === 'nkjv')) { if (versionParam && (versionParam === 'esv' || versionParam === 'nkjv')) {
setSelectedVersion(versionParam); setSelectedVersion(versionParam);
} else if (!versionParam && selectedVersion && location.pathname === '/') { } else if (location.pathname === '/' && !urlParams.get('version')) {
// If we're back at home without version param and had a version selected, // If we're at home without version param, clear selection
// this likely means user hit back and should see version selector
setSelectedVersion(''); setSelectedVersion('');
} }
}, [location.search, selectedVersion]); }, [location.search]);
useEffect(() => { useEffect(() => {
console.log('App useEffect triggered'); console.log('App useEffect triggered');