nova-betterchat/src
Tindo Arsel b3f421cde9
refactor: Add hideOnClickOutside feature to reuse code (#240)
* remove console log

* refactor: Add hideOnClickOutside feature to reuse code

This change abstracts the code repetition in three different files and promote the DRY principle by adding the hideOnClickOutside feature to the handleClickOutside function. The feature is designed to hide an element when clicking outside of its area.

* refactor: hooks

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-20 22:35:51 +08:00
..
api Sync to Google Drive (#233) 2023-04-14 15:29:13 +08:00
assets/icons Sync to Google Drive (#233) 2023-04-14 15:29:13 +08:00
components refactor: Add hideOnClickOutside feature to reuse code (#240) 2023-04-20 22:35:51 +08:00
constants Add language names (#198) 2023-04-04 16:08:02 +08:00
hooks refactor: Add hideOnClickOutside feature to reuse code (#240) 2023-04-20 22:35:51 +08:00
store feat: inline LaTeX toggle 2023-04-17 17:36:34 +08:00
types Sync to Google Drive (#233) 2023-04-14 15:29:13 +08:00
utils Sync to Google Drive (#233) 2023-04-14 15:29:13 +08:00
App.tsx Sync to Google Drive (#233) 2023-04-14 15:29:13 +08:00
i18n.ts Sync to Google Drive (#233) 2023-04-14 15:29:13 +08:00
main.css style: scrollbar 2023-04-04 14:33:56 +08:00
main.tsx fix math-katex rendering (#194) 2023-04-07 21:13:46 +08:00
vite-env.d.ts Initial Commit 2023-03-03 13:25:10 +08:00