Archived
feat: pdf reader
This commit is contained in:
@@ -191,13 +191,9 @@ export function LibraryPage() {
|
||||
|
||||
const openBook = useCallback(
|
||||
(book: LibraryBook) => {
|
||||
if (book.format === "pdf") {
|
||||
setReaderNotice(t("library.pdfNotice"));
|
||||
return;
|
||||
}
|
||||
navigate(`/read/${book.id}`);
|
||||
},
|
||||
[navigate, t],
|
||||
[navigate],
|
||||
);
|
||||
|
||||
const containerStyle: React.CSSProperties = {
|
||||
@@ -337,7 +333,6 @@ export function LibraryPage() {
|
||||
visible={showSuggestions && !voiceSearch.isListening}
|
||||
onClose={() => setShowSuggestions(false)}
|
||||
onSelectSuggestion={() => setShowSuggestions(false)}
|
||||
onPdfBook={() => setReaderNotice(t("library.pdfNotice"))}
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user