From 6fae01d45adee0869f6fd04d437d711d985951a9 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Thu, 15 Dec 2022 23:47:31 +0100 Subject: [PATCH] added auto animate to installed apps, fixed container size (#6046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added auto animate to installed apps, fixed container size, horizontal scroll * Update packages/ui/v2/modules/booker/DatePicker.tsx Co-authored-by: Omar López Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/components/apps/IntegrationListItem.tsx | 2 +- apps/web/public/static/locales/en/common.json | 2 +- packages/app-store/_components/AppCategoryNavigation.tsx | 8 ++++++-- packages/ui/v2/core/layouts/InstalledAppsLayout.tsx | 5 ++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/web/components/apps/IntegrationListItem.tsx b/apps/web/components/apps/IntegrationListItem.tsx index fff73dd343..22d0753c6b 100644 --- a/apps/web/components/apps/IntegrationListItem.tsx +++ b/apps/web/components/apps/IntegrationListItem.tsx @@ -44,7 +44,7 @@ function IntegrationListItem(props: { expanded={!!props.children} className={classNames( props.separate ? "rounded-md" : "first:rounded-t-md last:rounded-b-md", - "my-0 flex-col border transition-colors duration-500 ", + "my-0 flex-col border transition-colors duration-500", highlight ? "bg-yellow-100" : "" )}>
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index b9bdbeefe3..b224a4618e 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -793,7 +793,7 @@ "no_category_apps_description_analytics": "Add an analytics app for your booking pages", "no_category_apps_description_automation": "Add an automation app to use", "no_category_apps_description_other": "Add any other type of app to do all sorts of things", - "installed_app_calendar_description": "Set the calendar(s) to check for conflicts to prevent double bookings.", + "installed_app_calendar_description": "Set the calendars to check for conflicts to prevent double bookings.", "installed_app_conferencing_description": "Add your favourite video conferencing apps for your meetings", "installed_app_payment_description": "Configure which payment processing services to use when charging your clients.", "installed_app_analytics_description": "Configure which analytics apps to use for your booking pages", diff --git a/packages/app-store/_components/AppCategoryNavigation.tsx b/packages/app-store/_components/AppCategoryNavigation.tsx index ce3f183218..feee984577 100644 --- a/packages/app-store/_components/AppCategoryNavigation.tsx +++ b/packages/app-store/_components/AppCategoryNavigation.tsx @@ -1,3 +1,4 @@ +import { useAutoAnimate } from "@formkit/auto-animate/react"; import { useMemo } from "react"; import { classNames } from "@calcom/lib"; @@ -17,16 +18,19 @@ const AppCategoryNavigation = ({ className?: string; }) => { const appCategories = useMemo(() => getAppCategories(baseURL), [baseURL]); + const [animationRef] = useAutoAnimate(); return (
-
+
-
{children}
+
+ {children} +
); }; diff --git a/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx b/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx index 6981e1a48a..13fbced1bc 100644 --- a/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx +++ b/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx @@ -54,9 +54,12 @@ export default function InstalledAppsLayout({ if (query.data?.items.length === 0) { actualTabs = tabs.filter((tab) => tab.name !== InstalledAppVariants.payment); } + return ( - + {children}