changed all new buttons, added i18n for routing forms (#4217)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2022-09-06 13:13:20 -06:00
1 parent 851fb25430
commit c0b83c1df6
3 files changed
+8 -5

No files matched your search

@@ -22,7 +22,7 @@ export default function RoutingForms({
function NewFormButton() {
return (
<FormAction routingForm={null} data-testid="new-routing-form" StartIcon={Icon.FiPlus} action="create">
New Form
{t("new")}
</FormAction>
);
}
@@ -37,8 +37,8 @@ export default function RoutingForms({
{!forms.length ? (
<EmptyScreen
Icon={Icon.FiGitMerge}
headline="Create your first form"
description="Forms enable you to allow a booker to connect with the right person or choose the right event, faster. It would work by taking inputs from the booker and using that data to route to the correct booker/event as configured by Cal user"
headline={t("create_your_first_form")}
description={t("create_your_first_form_description")}
buttonRaw={<NewFormButton />}
/>
) : null}
@@ -103,7 +103,7 @@ export default function RoutingForms({
routingForm={form}
color="minimal"
StartIcon={Icon.FiDownload}>
Download Responses
{t("download_responses")}
</FormAction>
<FormAction
action="embed"
@@ -41,7 +41,7 @@ export function NewScheduleButton({ name = "new-schedule" }: { name?: string })
<Dialog name={name} clearQueryParamsOnClose={["copy-schedule-id"]}>
<DialogTrigger asChild>
<Button data-testid={name} StartIcon={Icon.FiPlus}>
{t("new_schedule_btn")}
{t("new")}
</Button>
</DialogTrigger>
<DialogContent>