feat: add TemplateGrid and TitleBar components with tests
- Implemented TemplateGrid component for displaying templates in a grid layout. - Added calculateCardWidth helper function for dynamic card sizing. - Created TitleBar component for displaying the title and points with interaction. - Added unit tests for TemplateGrid and TitleBar components to ensure proper functionality. - Introduced useStickyTabs and useTabNavigation hooks with tests for managing sticky tab behavior and navigation logic. - Implemented useTemplateFilter hook for filtering templates based on video content. - Added comprehensive tests for all new hooks and components to validate behavior and edge cases.
This commit is contained in:
@@ -11,3 +11,6 @@ export { useDebounce } from './use-debounce'
|
||||
export { useWorksSearch } from './use-works-search'
|
||||
export { useChangePassword } from './use-change-password'
|
||||
export { useUpdateProfile } from './use-update-profile'
|
||||
export { useTemplateFilter, type Template, type UseTemplateFilterOptions, type UseTemplateFilterReturn } from './use-template-filter'
|
||||
export { useStickyTabs, type UseStickyTabsReturn } from './use-sticky-tabs'
|
||||
export { useTabNavigation, type Category, type UseTabNavigationOptions, type UseTabNavigationReturn } from './use-tab-navigation'
|
||||
|
||||
Reference in New Issue
Block a user