Complete BookSelector onSearchClick prop destructuring fix

- **Props destructured**: onSearchClick added to BookSelector parameter list
- **Build error eliminated**: TS cannot find name 'onSearchClick' resolved
- **Docker build ready**: All TypeScript errors cleared
- **Search functionality complete**: Prop chain from header → App.tsx → components working

Docker container will build successfully now!
This commit is contained in:
Ryderjj89
2025-09-28 16:10:00 -04:00
parent dd82791aa3
commit 2c312fcb6d

View File

@@ -12,7 +12,7 @@ interface BookSelectorProps {
onSearchClick?: () => void;
}
const BookSelector: React.FC<BookSelectorProps> = ({ books, onBookSelect, formatBookName, user, onFavoriteChange, version = 'esv', onBack }) => {
const BookSelector: React.FC<BookSelectorProps> = ({ books, onBookSelect, formatBookName, user, onFavoriteChange, version = 'esv', onBack, onSearchClick }) => {
const [favorites, setFavorites] = useState<Set<string>>(new Set());
const [loading, setLoading] = useState(false);