From 2332a3cd306bd923fc5879125b8163839a38551a Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sun, 28 Sep 2025 16:04:21 -0400 Subject: [PATCH] Partial search bar implementation - added search input below breadcrumbs - **BookSelector search bar**: Responsive input with 'Search for verses, words, or phrases...' placeholder - **Mobile-friendly design**: Centered search bar with search icon, spans full width on mobile - **Search modal integration**: onClick handler calls the same search modal as header icon - **Positioning**: Search bar placed below breadcrumbs on book selection page - **Prop passthrough**: onSearchClick prop set up for easy extension to other components Search bar is now present on main book selection page - ready to extend to other pages --- frontend/src/components/BookSelector.tsx | 14 ++++++++++++++ frontend/src/components/ChapterSelector.tsx | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/BookSelector.tsx b/frontend/src/components/BookSelector.tsx index 589bc435..017288c1 100644 --- a/frontend/src/components/BookSelector.tsx +++ b/frontend/src/components/BookSelector.tsx @@ -179,6 +179,20 @@ const BookSelector: React.FC = ({ books, onBookSelect, format )} + {/* Search Bar */} +
+
+ + +
+
+

{version.toUpperCase()} Bible diff --git a/frontend/src/components/ChapterSelector.tsx b/frontend/src/components/ChapterSelector.tsx index edc579ff..0a39d8a7 100644 --- a/frontend/src/components/ChapterSelector.tsx +++ b/frontend/src/components/ChapterSelector.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { ArrowLeft, FileText, Star, ChevronRight } from 'lucide-react'; +import { ArrowLeft, FileText, Star, ChevronRight, Search } from 'lucide-react'; import { getBook } from '../services/api'; interface ChapterSelectorProps { @@ -10,6 +10,7 @@ interface ChapterSelectorProps { user?: any; onFavoriteChange?: () => void; version?: string; + onSearchClick?: () => void; } const ChapterSelector: React.FC = ({ book, onChapterSelect, onBack, formatBookName, user, onFavoriteChange, version = 'esv' }) => {