Commit Graph

9 Commits

Author SHA1 Message Date
Aaron William Po
ea3e8a0023 Refactor beer comment section and incorporate image carousel
Beer comment section now uses a ternary expression for isLoading. Image carousel implemented in beer by id page.
2023-04-11 20:23:55 -04:00
Aaron William Po
915adb722a Implement react-intersection-observer to facilitate infinite scroll
Uses react-intersection-observer to load more comments when the last of the previously loaded comments is in the viewport.
2023-04-09 18:41:58 -04:00
Aaron William Po
8981bcb4b8 Replace useSWR with useSWRInfinite to facilitate infinite scrolling 2023-04-09 11:25:10 -04:00
Aaron William Po
796a5fce3f Styling changes and refactor
Switch google fonts to use Next.js font optimization, animate comment fade in, and refactor beer like handler and comment submit handler.
2023-04-04 20:51:29 -04:00
Aaron William Po
801a3c8ad3 Refactor comment cards out of comment section 2023-04-02 22:10:04 -04:00
Aaron William Po
de3964dbfa Rewrote beer by id page comments to load on client 2023-04-02 21:50:42 -04:00
Aaron William Po
b69dbc95b4 Work on brewery page, refactors
Refactor query types to explicitly use z.infer
2023-03-31 21:13:35 -04:00
Aaron William Po
d8a8dad37f Refactor beer by id page
Extracted services to separate files.
2023-03-27 19:02:45 -04:00
Aaron William Po
472ead9abd Refactoring beer by id page, add delete comment
Refactored the comments ui into various new components, added the delete beer comment by id feature.
2023-03-03 21:28:44 -05:00