/event-types/detail wrong empty screen for workflows (#4757)

Co-authored-by: gitstart <[email protected]>
Co-authored-by: gitstart <[email protected]>
Co-authored-by: Rafael Toledo <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: Thiago Nascimbeni <[email protected]>
Co-authored-by: Klinger Matheus <[email protected]>
Co-authored-by: Nitesh Singh <[email protected]>
Co-authored-by: Grace Nshokano <[email protected]>
Co-authored-by: Olusanya Timothy <[email protected]>

Co-authored-by: gitstart <[email protected]>
Co-authored-by: gitstart <[email protected]>
Co-authored-by: Rafael Toledo <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: Thiago Nascimbeni <[email protected]>
Co-authored-by: Klinger Matheus <[email protected]>
Co-authored-by: Nitesh Singh <[email protected]>
Co-authored-by: Grace Nshokano <[email protected]>
Co-authored-by: Olusanya Timothy <[email protected]>
Co-authored-by: Carina Wollendorfer <[email protected]>
This commit is contained in:
1 file changed
+17 -11
@@ -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) {
})}
</div>
) : (
<EmptyScreen
buttonText={t("create_workflow")}
buttonOnClick={() => createMutation.mutate()}
IconHeading={Icon.FiZap}
headline={t("workflows")}
description={t("no_workflows_description")}
isLoading={createMutation.isLoading}
showExampleWorkflows={false}
/>
<div className="pt-4 before:border-0">
<EmptyScreen
Icon={Icon.FiZap}
headline={t("workflows")}
description={t("no_workflows_description")}
buttonRaw={
<Button
target="_blank"
color="secondary"
onClick={() => createMutation.mutate()}
loading={createMutation.isLoading}>
{t("create_workflow")}
</Button>
}
/>
</div>
)
) : (
<SkeletonLoader />