diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index bc5bbc73b3..b3618532d9 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1156,5 +1156,11 @@ "create_your_first_form_description": "With Routing Forms you can ask qualifying questions and route to the correct person or event type.", "for_a_maximum_of": "For a maximum of", "event_one": "event", - "event_other": "events" + "event_other": "events", + "workflow_example_1": "Send email reminder 24 hours before event starts to host", + "workflow_example_2": "Send SMS reminder 1 hour before event starts to host", + "workflow_example_3": "Send custom email when event is cancelled to host", + "workflow_example_4": "Send email reminder 24 hours before event starts to attendee", + "workflow_example_5": "Send SMS reminder 1 hour before event starts to attendee", + "workflow_example_6": "Send custom SMS when event is rescheduled to attendee" } diff --git a/packages/features/ee/workflows/components/v2/EmptyScreen.tsx b/packages/features/ee/workflows/components/v2/EmptyScreen.tsx index bc23b24559..20267a9491 100644 --- a/packages/features/ee/workflows/components/v2/EmptyScreen.tsx +++ b/packages/features/ee/workflows/components/v2/EmptyScreen.tsx @@ -1,19 +1,11 @@ import React from "react"; import { Icon as FeatherIcon } from "react-feather"; +import { useLocale } from "@calcom/lib/hooks/useLocale"; import { SVGComponent } from "@calcom/types/SVGComponent"; import { Icon } from "@calcom/ui/Icon"; import { Button } from "@calcom/ui/v2"; -const workflowsExamples = [ - { icon: Icon.FiMail, text: "Send email reminder 24 hours before event starts to host" }, - { icon: Icon.FiSmartphone, text: "Send SMS reminder 1 hour before event starts to host" }, - { icon: Icon.FiMail, text: "Send custom email when event is cancelled to host" }, - { icon: Icon.FiMail, text: "Send email reminder 24 hours before event starts to attendee" }, - { icon: Icon.FiSmartphone, text: "Send SMS reminder 1 hour before event starts to attendee" }, - { icon: Icon.FiSmartphone, text: "Send custom SMS when event is rescheduled to attendee" }, -]; - type WorkflowExampleType = { Icon: FeatherIcon; text: string; @@ -23,15 +15,15 @@ function WorkflowExample(props: WorkflowExampleType) { const { Icon, text } = props; return ( -
-
+
+
-
+
-
-
{text}
+
+
{text}
@@ -55,6 +47,17 @@ export default function EmptyScreen({ isLoading: boolean; showExampleWorkflows: boolean; }) { + const { t } = useLocale(); + + const workflowsExamples = [ + { icon: Icon.FiMail, text: t("workflow_example_1") }, + { icon: Icon.FiSmartphone, text: t("workflow_example_2") }, + { icon: Icon.FiMail, text: t("workflow_example_3") }, + { icon: Icon.FiMail, text: t("workflow_example_4") }, + { icon: Icon.FiSmartphone, text: t("workflow_example_5") }, + { icon: Icon.FiSmartphone, text: t("workflow_example_6") }, + ]; + return ( <>
@@ -72,7 +75,7 @@ export default function EmptyScreen({ StartIcon={Icon.FiPlus} onClick={(e) => buttonOnClick(e)} loading={isLoading} - className="mt-8"> + className="mx-auto mt-8"> {buttonText} )} diff --git a/packages/features/ee/workflows/pages/v2/index.tsx b/packages/features/ee/workflows/pages/v2/index.tsx index 4997cbed38..611487e1cd 100644 --- a/packages/features/ee/workflows/pages/v2/index.tsx +++ b/packages/features/ee/workflows/pages/v2/index.tsx @@ -43,7 +43,8 @@ function WorkflowsPage() { return session.data ? ( 0 ? (