easier to delete

This commit is contained in:
Pallavi Kumari
2025-10-19 20:37:07 +05:30
parent ae4a24f4aa
commit f258c41f15
11 changed files with 22 additions and 74 deletions

View File

@@ -179,17 +179,12 @@ export default function ApiKeysTable({ apiKeys }: ApiKeyTableProps) {
dialog={
<div className="space-y-4">
<p>
{t("apiKeysQuestionRemove", {
selectedApiKey:
selected?.name || selected?.id
})}
{t("apiKeysQuestionRemove")}
</p>
<p>
<b>{t("apiKeysMessageRemove")}</b>
</p>
<p>{t("apiKeysMessageConfirm")}</p>
</div>
}
buttonText={t("apiKeysDeleteConfirm")}

View File

@@ -279,24 +279,13 @@ export default function ClientsTable({ clients, orgId }: ClientTableProps) {
dialog={
<div className="space-y-4">
<p>
Are you sure you want to remove the client{" "}
<b>
{selectedClient?.name || selectedClient?.id}
</b>{" "}
from the site and organization?
{t("deleteClientQuestion")}
</p>
<p>
<b>
Once removed, the client will no longer be
able to connect to the site.{" "}
{t("clientMessageRemove")}
</b>
</p>
<p>
To confirm, please type the name of the client
below.
</p>
</div>
}
buttonText="Confirm Delete Client"

View File

@@ -239,14 +239,11 @@ export default function DomainsTable({ domains }: Props) {
dialog={
<div className="space-y-4">
<p>
{t("domainQuestionRemove", {
domain: selectedDomain.baseDomain
})}
{t("domainQuestionRemove")}
</p>
<p>
<b>{t("domainMessageRemove")}</b>
</p>
<p>{t("domainMessageConfirm")}</p>
</div>
}
buttonText={t("domainConfirmDelete")}

View File

@@ -177,12 +177,9 @@ export default function InvitationsTable({
dialog={
<div className="space-y-4">
<p>
{t("inviteQuestionRemove", {
email: selectedInvitation?.email || ""
})}
{t("inviteQuestionRemove")}
</p>
<p>{t("inviteMessageRemove")}</p>
<p>{t("inviteMessageConfirm")}</p>
</div>
}
buttonText={t("inviteRemoveConfirm")}

View File

@@ -187,17 +187,12 @@ export default function OrgApiKeysTable({
dialog={
<div className="space-y-4">
<p>
{t("apiKeysQuestionRemove", {
selectedApiKey:
selected?.name || selected?.id
})}
{t("apiKeysQuestionRemove")}
</p>
<p>
<b>{t("apiKeysMessageRemove")}</b>
</p>
<p>{t("apiKeysMessageConfirm")}</p>
</div>
}
buttonText={t("apiKeysDeleteConfirm")}

View File

@@ -179,14 +179,11 @@ export default function IdpTable({ idps, orgId }: Props) {
dialog={
<div className="space-y-4">
<p>
{t("idpQuestionRemove", {
name: selectedIdp.name
})}
{t("idpQuestionRemove")}
</p>
<p>
<b>{t("idpMessageRemove")}</b>
</p>
<p>{t("idpMessageConfirm")}</p>
</div>
}
buttonText={t("idpConfirmDelete")}