diff --git a/apps/web/pages/auth/setup/index.tsx b/apps/web/pages/auth/setup/index.tsx index 9635a33ff3..c85d53544f 100644 --- a/apps/web/pages/auth/setup/index.tsx +++ b/apps/web/pages/auth/setup/index.tsx @@ -24,7 +24,7 @@ export default function Setup(props: inferSSRProps) { { title: t("enable_apps"), description: t("enable_apps_description"), - content: , + content: , isLoading: false, }, ]; diff --git a/packages/app-store/_components/AppCategoryNavigation.tsx b/packages/app-store/_components/AppCategoryNavigation.tsx index feee984577..868321f276 100644 --- a/packages/app-store/_components/AppCategoryNavigation.tsx +++ b/packages/app-store/_components/AppCategoryNavigation.tsx @@ -11,19 +11,26 @@ const AppCategoryNavigation = ({ children, containerClassname, className, + fromAdmin, }: { baseURL: string; children: React.ReactNode; containerClassname: string; className?: string; + fromAdmin?: boolean; }) => { - const appCategories = useMemo(() => getAppCategories(baseURL), [baseURL]); const [animationRef] = useAutoAnimate(); + const appCategories = useMemo(() => getAppCategories(baseURL, fromAdmin), [baseURL, fromAdmin]); return (
- +
diff --git a/packages/app-store/_utils/getAppCategories.ts b/packages/app-store/_utils/getAppCategories.ts index 39a2ba60af..491728831e 100644 --- a/packages/app-store/_utils/getAppCategories.ts +++ b/packages/app-store/_utils/getAppCategories.ts @@ -1,40 +1,44 @@ import { Icon } from "@calcom/ui"; -const getAppCategories = (baseURL: string) => { +function getHref(baseURL: string, category: string, useQueryParam: boolean) { + return useQueryParam ? `${baseURL}&category=${category}` : `${baseURL}/${category}`; +} + +const getAppCategories = (baseURL: string, useQueryParam = false) => { return [ { name: "calendar", - href: `${baseURL}/calendar`, + href: getHref(baseURL, "calendar", useQueryParam), icon: Icon.FiCalendar, }, { name: "conferencing", - href: `${baseURL}/conferencing`, + href: getHref(baseURL, "conferencing", useQueryParam), icon: Icon.FiVideo, }, { name: "payment", - href: `${baseURL}/payment`, + href: getHref(baseURL, "payment", useQueryParam), icon: Icon.FiCreditCard, }, { name: "automation", - href: `${baseURL}/automation`, + href: getHref(baseURL, "automation", useQueryParam), icon: Icon.FiShare2, }, { name: "analytics", - href: `${baseURL}/analytics`, + href: getHref(baseURL, "analytics", useQueryParam), icon: Icon.FiBarChart, }, { name: "web3", - href: `${baseURL}/web3`, + href: getHref(baseURL, "web3", useQueryParam), icon: Icon.FiBarChart, }, { name: "other", - href: `${baseURL}/other`, + href: getHref(baseURL, "other", useQueryParam), icon: Icon.FiGrid, }, ]; diff --git a/packages/features/apps/AdminAppsList.tsx b/packages/features/apps/AdminAppsList.tsx index 3740ef28a3..6db6b1e803 100644 --- a/packages/features/apps/AdminAppsList.tsx +++ b/packages/features/apps/AdminAppsList.tsx @@ -174,14 +174,26 @@ const querySchema = z.object({ .default(AppCategories.calendar), }); -const AdminAppsList = ({ baseURL, className }: { baseURL: string; className?: string }) => ( - - - -); +const AdminAppsList = ({ baseURL, className }: { baseURL: string; className?: string }) => { + const router = useRouter(); + return ( +
{ + e.preventDefault(); + router.replace("/"); + }}> + + + +
+ ); +}; const AdminAppsListContainer = () => { const { t } = useLocale(); @@ -222,7 +234,7 @@ export default AdminAppsList; const SkeletonLoader = () => { return ( - +
diff --git a/packages/ui/v2/core/WizardForm.tsx b/packages/ui/v2/core/WizardForm.tsx index 17e6564978..f54f5f2cce 100644 --- a/packages/ui/v2/core/WizardForm.tsx +++ b/packages/ui/v2/core/WizardForm.tsx @@ -42,7 +42,7 @@ function WizardForm(props: {

{currentStep.description}

-
{currentStep.content}
+
{currentStep.content}
{!props.disableNavigation && ( <> {currentStep.enabled !== false && ( diff --git a/packages/ui/v2/core/navigation/tabs/VerticalTabs.tsx b/packages/ui/v2/core/navigation/tabs/VerticalTabs.tsx index 81775c0515..5e74dc20f8 100644 --- a/packages/ui/v2/core/navigation/tabs/VerticalTabs.tsx +++ b/packages/ui/v2/core/navigation/tabs/VerticalTabs.tsx @@ -10,6 +10,7 @@ export interface NavTabProps { className?: string; sticky?: boolean; linkProps?: VerticalTabItemProps["linkProps"]; + itemClassname?: string; } const NavTabs = function ({ tabs, className = "", sticky, linkProps, ...props }: NavTabProps) { @@ -25,7 +26,7 @@ const NavTabs = function ({ tabs, className = "", sticky, linkProps, ...props }: {sticky &&
} {props.children} {tabs.map((tab, idx) => ( - + ))} );