diff --git a/apps/web/components/apps/layouts/AppsLayout.tsx b/apps/web/components/apps/layouts/AppsLayout.tsx index 3e7ed76181..9995804fac 100644 --- a/apps/web/components/apps/layouts/AppsLayout.tsx +++ b/apps/web/components/apps/layouts/AppsLayout.tsx @@ -4,18 +4,7 @@ import React, { ComponentProps } from "react"; import Shell from "@calcom/features/shell/Shell"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { EmptyScreen, Icon, HorizontalTabs, HorizontalTabItemProps } from "@calcom/ui"; - -const tabs: HorizontalTabItemProps[] = [ - { - name: "app_store", - href: "/apps", - }, - { - name: "installed_apps", - href: "/apps/installed", - }, -]; +import { EmptyScreen, Icon } from "@calcom/ui"; type AppsLayoutProps = { children: React.ReactNode; @@ -31,11 +20,8 @@ export default function AppsLayout({ children, actions, emptyStore, ...rest }: A if (session.status === "loading") return <>; return ( - +
-
- -
{emptyStore ? ( ( - setSearchText(e.target.value)} /> +
+
+ +
+
+ setSearchText(e.target.value)} /> +
+
)} + headerClassName="sm:hidden lg:block hidden" emptyStore={!appStore.length}> - {!searchText && ( - <> - - - - )} - category.name)} - /> +
+ {!searchText && ( + <> + + + + )} + category.name)} + /> +
); } diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx index 06f6b7eaf9..be6fa72ffa 100644 --- a/packages/features/shell/Shell.tsx +++ b/packages/features/shell/Shell.tsx @@ -148,6 +148,7 @@ type LayoutProps = { title?: string; heading?: ReactNode; subtitle?: ReactNode; + headerClassName?: string; children: ReactNode; CTA?: ReactNode; large?: boolean; @@ -784,15 +785,11 @@ export function ShellMain(props: LayoutProps) { /> )} {props.heading && ( -
+
{props.HeadingLeftIcon &&
{props.HeadingLeftIcon}
} -
+
{props.heading && ( -

+

{!isLocaleReady ? : props.heading}

)} @@ -815,7 +812,7 @@ export function ShellMain(props: LayoutProps) {
)}
-
+
{props.children}
@@ -831,7 +828,7 @@ function MainContainer({
{/* show top navigation for md and smaller (tablet and phones) */} {TopNavContainerProp} -
+
{!props.withoutMain ? {props.children} : props.children} diff --git a/packages/ui/components/apps/AllApps.tsx b/packages/ui/components/apps/AllApps.tsx index 0b53cc26b8..aa9af0eb9a 100644 --- a/packages/ui/components/apps/AllApps.tsx +++ b/packages/ui/components/apps/AllApps.tsx @@ -66,7 +66,7 @@ function CategoryTab({ selectedCategory, categories, searchText }: CategoryTabPr }; return (
-

+

{searchText ? t("search") : t("explore_apps", { @@ -158,7 +158,7 @@ export function AllApps({ apps, searchText, categories }: AllAppsPropsType) { .filter((app) => (searchText ? app.name.toLowerCase().includes(searchText.toLowerCase()) : true)); return ( -
+
{filteredApps.length ? (
+
{app.name
diff --git a/packages/ui/components/apps/Categories.tsx b/packages/ui/components/apps/Categories.tsx index 1bd6497e8b..6e56923188 100644 --- a/packages/ui/components/apps/Categories.tsx +++ b/packages/ui/components/apps/Categories.tsx @@ -15,9 +15,8 @@ export function AppStoreCategories({ }) { const { t, isLocaleReady } = useLocale(); return ( -
+
category.name} @@ -38,11 +37,11 @@ export function AppStoreCategories({ style={{ background: "radial-gradient(farthest-side at top right, #a2abbe 0%, #E3E3E3 100%)" }}>
{isLocaleReady ? ( -

{category.name}

+

{category.name}

) : ( )} -

+

{isLocaleReady ? t("number_apps", { count: category.count }) : }{" "}

diff --git a/packages/ui/components/apps/Slider.tsx b/packages/ui/components/apps/Slider.tsx index 07148cf582..9209bc3bff 100644 --- a/packages/ui/components/apps/Slider.tsx +++ b/packages/ui/components/apps/Slider.tsx @@ -1,13 +1,22 @@ import Glide, { Options } from "@glidejs/glide"; import "@glidejs/glide/dist/css/glide.core.min.css"; import "@glidejs/glide/dist/css/glide.theme.min.css"; -import { useEffect, useRef } from "react"; +import { ComponentProps, FC, useEffect, useRef } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Icon } from "../../components/icon"; import { SkeletonText } from "../skeleton"; +const SliderButton: FC> = (props) => { + const { children, ...rest } = props; + return ( + + ); +}; + export const Slider = ({ title = "", className = "", @@ -47,23 +56,23 @@ export const Slider = ({ `}
-
+
{isLocaleReady ? ( title && (
-

{title}

+

{title}

) ) : ( )} -
- - +
+ + + + + +
diff --git a/packages/ui/components/apps/TrendingAppsSlider.tsx b/packages/ui/components/apps/TrendingAppsSlider.tsx index 00d5ffe262..7e0ff29a7e 100644 --- a/packages/ui/components/apps/TrendingAppsSlider.tsx +++ b/packages/ui/components/apps/TrendingAppsSlider.tsx @@ -9,7 +9,6 @@ export const TrendingAppsSlider = ({ items }: { items: T[] }) => return ( - className="mb-16" title={t("trending_apps")} items={items.filter((app) => !!app.trending)} itemKey={(app) => app.name}