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:
7 files changed
+97
-35
No files matched your search
@@ -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,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user