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:
@@ -12,7 +12,7 @@ interface BookSelectorProps {
|
|||||||
onSearchClick?: () => void;
|
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 [favorites, setFavorites] = useState<Set<string>>(new Set());
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user