From b535a6f799be2c7f51895dd8d4febaad36a0734a Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Mon, 29 Sep 2025 11:06:00 -0400 Subject: [PATCH] Improve all versions search UI - show version badges on results and fix footer grammar --- frontend/src/components/SearchComponent.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/SearchComponent.tsx b/frontend/src/components/SearchComponent.tsx index 7037b357..e1bb6941 100644 --- a/frontend/src/components/SearchComponent.tsx +++ b/frontend/src/components/SearchComponent.tsx @@ -236,6 +236,11 @@ const SearchComponent: React.FC = ({ Chapter {result.chapter} Verse {result.verse} + {(result as any).searchVersion && ( + + {(result as any).searchVersion.toUpperCase()} + + )} {/* Verse Text */} @@ -276,7 +281,7 @@ const SearchComponent: React.FC = ({ {/* Footer */} {results.length > 0 && (
- Found {results.length} result{results.length !== 1 ? 's' : ''} for "{query}" in {selectedVersion.toUpperCase()} Bible + Found {results.length} result{results.length !== 1 ? 's' : ''} for "{query}" {selectedVersion === 'all' ? 'in all bibles' : `in the ${selectedVersion.toUpperCase()} Bible`}
)}