feat: add deals, tasks, and organizations pages with CRUD functionality

- Implemented DealsPage with deal creation, updating, and filtering features.
- Added OrganizationsPage to manage and switch between organizations.
- Created TasksPage for task management, including task creation and filtering.
- Updated router to include new pages for navigation.
This commit is contained in:
Artem Kashaev
2025-12-01 13:46:56 +05:00
parent 4fe3d0480e
commit 8718df9686
21 changed files with 1917 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
import { useEffect, useState } from 'react'
export const useDebounce = <T>(value: T, delay = 300) => {
const [debounced, setDebounced] = useState(value)
useEffect(() => {
const timer = window.setTimeout(() => setDebounced(value), delay)
return () => window.clearTimeout(timer)
}, [value, delay])
return debounced
}