chore: remove hardcoded strings (#18156)
This commit is contained in:
1 parent
8a6450e854
commit
656a5bf423
12 files changed
+37
-29
No files matched your search
@@ -1,11 +1,13 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { EmptyScreen, Button } from "@calcom/ui";
|
||||
|
||||
export default function NoPlatformPlan() {
|
||||
const { t } = useLocale();
|
||||
return (
|
||||
<EmptyScreen
|
||||
Icon="credit-card"
|
||||
headline="Subscription needed"
|
||||
description="You are not subscribed to a Platform plan."
|
||||
headline={t("subscription_needed")}
|
||||
description={t("subscription_needed_description")}
|
||||
buttonRaw={
|
||||
<div className="flex gap-2">
|
||||
<Button
|
||||
|
||||
@@ -188,7 +188,7 @@ export const OAuthClientForm = ({
|
||||
/>
|
||||
</div> */}
|
||||
<div className="mt-6">
|
||||
<Tooltip content="URL of your booking page">
|
||||
<Tooltip content={t("booking_redirect_uri")}>
|
||||
<TextField
|
||||
type="url"
|
||||
label="Booking redirect uri"
|
||||
@@ -199,7 +199,7 @@ export const OAuthClientForm = ({
|
||||
</Tooltip>
|
||||
</div>
|
||||
<div className="mt-6">
|
||||
<Tooltip content="URL of the page where your users can cancel their booking">
|
||||
<Tooltip content={t("booking_cancel_redirect_uri")}>
|
||||
<TextField
|
||||
type="url"
|
||||
label="Booking cancel redirect uri"
|
||||
@@ -210,7 +210,7 @@ export const OAuthClientForm = ({
|
||||
</Tooltip>
|
||||
</div>
|
||||
<div className="mt-6">
|
||||
<Tooltip content="URL of the page where your users can reschedule their booking">
|
||||
<Tooltip content={t("booking_reschedule_redirect_uri")}>
|
||||
<TextField
|
||||
type="url"
|
||||
label="Booking reschedule redirect uri"
|
||||
@@ -242,7 +242,7 @@ export const OAuthClientForm = ({
|
||||
<div>{permissionsCheckboxes}</div>
|
||||
</div>
|
||||
<Button className="mt-6" type="submit" loading={isPending}>
|
||||
{defaultValues ? "Update" : "Submit"}
|
||||
{defaultValues ? t("update") : t("submit")}
|
||||
</Button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user