changed all new buttons, added i18n for routing forms (#4217)
parent
851fb25430
commit
c0b83c1df6
|
@ -1151,6 +1151,9 @@
|
|||
"to": "To",
|
||||
"attendee_required_enter_number": "This will require the attendee to enter a phone number when booking",
|
||||
"workflow_turned_on_successfully": "{{workflowName}} workflow turned {{offOn}} successfully",
|
||||
"download_responses": "Download Responses",
|
||||
"create_your_first_form": "Create your first form",
|
||||
"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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue