feat: make the meeting duration time more visually toggleable (#15422)

* feat: make the meeting duration time more visually toggleable

* final_update

* Update dynamic-booking-pages.e2e.ts

* fix e2e

* fix: e2e test

* fixed

* update

* show selcted item at the time of mount

* fix type error

* Update Duration.tsx

* fix

---------

Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-08-19 14:25:02 +00:00
1 parent 99b7aaa62d
commit 680e748b7a
7 files changed
+97 -35

No files matched your search

+7 -2
View File
@@ -26,8 +26,13 @@ export function useShouldShowArrows() {
useEffect(() => {
const appCategoryList = ref.current;
if (appCategoryList && appCategoryList.scrollWidth > appCategoryList.clientWidth) {
setShowArrowScroll({ left: false, right: true });
if (appCategoryList) {
const isAtStart = appCategoryList.scrollLeft <= 0;
const isAtEnd = appCategoryList.scrollWidth <= appCategoryList.clientWidth + appCategoryList.scrollLeft;
setShowArrowScroll({
left: !isAtStart,
right: !isAtEnd,
});
}
}, []);