From 8ee109e975ee56b58945ff1452c92c15031d4ac3 Mon Sep 17 00:00:00 2001 From: Nafees Nazik <84864519+G3root@users.noreply.github.com> Date: Thu, 19 Jan 2023 20:32:01 +0530 Subject: [PATCH] fix: app list item ui issues in `/settings/my-account/conferencing` (#6565) * fix: border color * fix: padding and title line-height * feat: add app-list card * feat: use the AppListCard component * nit: remove unused imports --- apps/web/components/AppListCard.tsx | 35 +++++++++++++++++++ .../settings/my-account/conferencing.tsx | 28 ++++++--------- .../settings/layouts/SettingsLayout.tsx | 6 ++-- packages/ui/components/list/List.tsx | 2 +- 4 files changed, 51 insertions(+), 20 deletions(-) create mode 100644 apps/web/components/AppListCard.tsx diff --git a/apps/web/components/AppListCard.tsx b/apps/web/components/AppListCard.tsx new file mode 100644 index 0000000000..286a95ba49 --- /dev/null +++ b/apps/web/components/AppListCard.tsx @@ -0,0 +1,35 @@ +import { ReactNode } from "react"; + +import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { Badge, ListItemText } from "@calcom/ui"; + +interface AppListCardProps { + logo?: string; + title: string; + description: string; + actions?: ReactNode; + isDefault?: boolean; +} + +export default function AppListCard(props: AppListCardProps) { + const { t } = useLocale(); + const { logo, title, description, actions, isDefault } = props; + + return ( +