From 58453d0f2f6bc95b937e8ee5066c8b2f66c3bb74 Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Fri, 7 Oct 2022 06:25:30 -0300 Subject: [PATCH] /event-types/detail wrong empty screen for workflows (#4757) Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Matheus Muniz Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Klinger Matheus <50892465+KlingerMatheus@users.noreply.github.com> Co-authored-by: Nitesh Singh Co-authored-by: Grace Nshokano Co-authored-by: Olusanya Timothy <48022904+seunexplicit@users.noreply.github.com> Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Matheus Muniz Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Klinger Matheus <50892465+KlingerMatheus@users.noreply.github.com> Co-authored-by: Nitesh Singh Co-authored-by: Grace Nshokano Co-authored-by: Olusanya Timothy <48022904+seunexplicit@users.noreply.github.com> Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> --- .../components/v2/EventWorkflowsTab.tsx | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/packages/features/ee/workflows/components/v2/EventWorkflowsTab.tsx b/packages/features/ee/workflows/components/v2/EventWorkflowsTab.tsx index a82b6245ad..4a90910740 100644 --- a/packages/features/ee/workflows/components/v2/EventWorkflowsTab.tsx +++ b/packages/features/ee/workflows/components/v2/EventWorkflowsTab.tsx @@ -8,11 +8,10 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; import { HttpError } from "@calcom/lib/http-error"; import { trpc } from "@calcom/trpc/react"; import { Icon } from "@calcom/ui"; -import { Button, showToast, Switch, Tooltip } from "@calcom/ui/v2"; +import { Button, showToast, Switch, Tooltip, EmptyScreen } from "@calcom/ui/v2"; import LicenseRequired from "../../../common/components/v2/LicenseRequired"; import { getActionIcon } from "../../lib/getActionIcon"; -import EmptyScreen from "./EmptyScreen"; import SkeletonLoader from "./SkeletonLoaderEventWorkflowsTab"; import { WorkflowType } from "./WorkflowListPage"; @@ -203,15 +202,22 @@ function EventWorkflowsTab(props: Props) { })} ) : ( - createMutation.mutate()} - IconHeading={Icon.FiZap} - headline={t("workflows")} - description={t("no_workflows_description")} - isLoading={createMutation.isLoading} - showExampleWorkflows={false} - /> +
+ createMutation.mutate()} + loading={createMutation.isLoading}> + {t("create_workflow")} + + } + /> +
) ) : (