renamed integratin to app and extracted into common.json (#2951)
parent
7b0d5811d6
commit
42c49a8263
|
@ -1 +1 @@
|
|||
Subproject commit 0331484a2d276e1c385266fed17e82737df6f103
|
||||
Subproject commit c6d8babb4d6810f06f2869e89cda286b3e0402c9
|
|
@ -1,6 +1,7 @@
|
|||
import { useState } from "react";
|
||||
import { useMutation } from "react-query";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import showToast from "@calcom/lib/notification";
|
||||
import { ButtonBaseProps } from "@calcom/ui/Button";
|
||||
import { Dialog } from "@calcom/ui/Dialog";
|
||||
|
@ -13,6 +14,7 @@ export default function DisconnectIntegration(props: {
|
|||
render: (renderProps: ButtonBaseProps) => JSX.Element;
|
||||
onOpenChange: (isOpen: boolean) => unknown | Promise<unknown>;
|
||||
}) {
|
||||
const { t } = useLocale();
|
||||
const [modalOpen, setModalOpen] = useState(false);
|
||||
const mutation = useMutation(
|
||||
async () => {
|
||||
|
@ -43,13 +45,13 @@ export default function DisconnectIntegration(props: {
|
|||
<Dialog open={modalOpen} onOpenChange={setModalOpen}>
|
||||
<ConfirmationDialogContent
|
||||
variety="danger"
|
||||
title="Disconnect Integration"
|
||||
confirmBtnText="Yes, disconnect integration"
|
||||
title={t("remove_app")}
|
||||
confirmBtnText={t("yes_remove_app")}
|
||||
cancelBtnText="Cancel"
|
||||
onConfirm={() => {
|
||||
mutation.mutate();
|
||||
}}>
|
||||
Are you sure you want to disconnect this integration?
|
||||
{t("are_you_sure_you_want_to_remove_this_app")}
|
||||
</ConfirmationDialogContent>
|
||||
</Dialog>
|
||||
{props.render({
|
||||
|
|
|
@ -883,5 +883,8 @@
|
|||
"meeting_url_in_conformation_email": "Meeting url is in the confirmation email",
|
||||
"url_start_with_https": "URL needs to start with http:// or https://",
|
||||
"number_provided": "Phone number will be provided",
|
||||
"remove_app": "Remove App",
|
||||
"yes_remove_app": "Yes, remove app",
|
||||
"are_you_sure_you_want_to_remove_this_app": "Are you sure you want to remove this app?",
|
||||
"web_conference": "Web conference"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue