Commit Graph

7 Commits

Author SHA1 Message Date
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
a4362a531c Add custom hooks for time distance and retrieving like count
Documentation added to all custom hooks
2023-04-03 23:32:32 -04:00
Aaron William Po
f8ecaa51b5 Update beer like button to use custom hook to load like status 2023-04-02 21:51:10 -04:00
Aaron William Po
4cd2ab476f Formatting changes 2023-02-20 09:09:45 -05:00
Aaron William Po
d50ce7497b Add like count and extracted like button out of parent 2023-02-15 21:35:18 -05:00