-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show a fun fact while pdf is loading (#53)
### TL;DR Integrated a new feature in the Document Viewer that fetches and displays random advice from Advice Slip API. ### What changed? 1. Modified `document-viewer.tsx` to include a new state for storing advice fetched from the Advice Slip API. 2. Added `AdviceAPIType` to the `types` directory. ### Why? I like websites that feel fun and developer made, not cooperate. Also, reading and thinking about advice makes the long loading much less painful.
- Loading branch information
Showing
3 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters