diff --git a/web/sdk/admin/views/organizations/details/members/remove-member.tsx b/web/sdk/admin/views/organizations/details/members/remove-member.tsx index 88667d4233..49ea4caa3e 100644 --- a/web/sdk/admin/views/organizations/details/members/remove-member.tsx +++ b/web/sdk/admin/views/organizations/details/members/remove-member.tsx @@ -5,7 +5,7 @@ import { } from "@raystack/proton/frontier"; import { create } from "@bufbuild/protobuf"; import { useMutation } from "@connectrpc/connect-query"; -import { Button, Dialog, Flex, Text, toastManager } from "@raystack/apsara"; +import { AlertDialog, Button, toastManager } from "@raystack/apsara"; import { handleConnectError } from "~/utils/error"; import { useTerminology } from "../../../../hooks/useTerminology"; @@ -60,31 +60,24 @@ export const RemoveMember = ({ } return ( - - - - Remove {t.member({ case: "capital" })} - - - - - - Removing this {t.member({ case: "lower" })} will revoke all their access to the{" "} - {t.organization({ case: "lower" })}. This action cannot be undone. The {t.member({ case: "lower" })} will lose - all assigned roles and permissions immediately. - - - Are you sure you want to remove this {t.member({ case: "lower" })}? - - - - - + + + Remove {t.member({ case: "capital" })} + + Removing this {t.member({ case: "lower" })} will revoke all their access to the{" "} + {t.organization({ case: "lower" })}. This action cannot be undone. The {t.member({ case: "lower" })} will lose + all assigned roles and permissions immediately. Are you sure you want to remove this {t.member({ case: "lower" })}? + + + + Cancel @@ -101,8 +94,8 @@ export const RemoveMember = ({ > Remove - - - + + + ); }; diff --git a/web/sdk/admin/views/users/details/layout/suspend-user.tsx b/web/sdk/admin/views/users/details/layout/suspend-user.tsx index 5751998d96..1f8966c82f 100644 --- a/web/sdk/admin/views/users/details/layout/suspend-user.tsx +++ b/web/sdk/admin/views/users/details/layout/suspend-user.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { Button, Dialog, Flex, Text, toastManager } from "@raystack/apsara"; +import { AlertDialog, Button, toastManager } from "@raystack/apsara"; import { useTerminology } from "../../../../hooks/useTerminology"; interface SuspendDropdownProps { @@ -29,25 +29,24 @@ export const SuspendUser = ({ }; return ( - - - - - Suspend {t.user({ case: "capital" })} - - Suspending this {t.user({ case: "lower" })} will permanently restrict access to its - content, disable communication, and prevent any future - interactions. Are you sure you want to proceed? - - - - - + + + Suspend {t.user({ case: "capital" })} + + Suspending this {t.user({ case: "lower" })} will permanently restrict access to its + content, disable communication, and prevent any future + interactions. Are you sure you want to proceed? + + + + Cancel @@ -65,8 +64,8 @@ export const SuspendUser = ({ > Suspend - - - + + + ); }; diff --git a/web/sdk/admin/views/users/details/security/sessions/revoke-session-confirm.tsx b/web/sdk/admin/views/users/details/security/sessions/revoke-session-confirm.tsx index 67c3721451..4f121f0969 100644 --- a/web/sdk/admin/views/users/details/security/sessions/revoke-session-confirm.tsx +++ b/web/sdk/admin/views/users/details/security/sessions/revoke-session-confirm.tsx @@ -1,10 +1,8 @@ import { useState } from 'react'; import { - Button, Dialog, - Flex, - List, - Text + Button, + List } from '@raystack/apsara'; import { RevokeSessionFinalConfirm } from './revoke-session-final-confirm'; import { formatDeviceDisplay } from './index'; @@ -39,16 +37,11 @@ export const RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevo return ( <> - + - - + {sessionInfo ? formatDeviceDisplay(sessionInfo.browser, sessionInfo.operatingSystem) : "Unknown browser and OS"} - - - + @@ -73,27 +66,28 @@ export const RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevo - - - - + + Cancel + + } + /> + diff --git a/web/sdk/admin/views/users/details/security/sessions/revoke-session-final-confirm.tsx b/web/sdk/admin/views/users/details/security/sessions/revoke-session-final-confirm.tsx index 8252f10bbd..158f0e02cf 100644 --- a/web/sdk/admin/views/users/details/security/sessions/revoke-session-final-confirm.tsx +++ b/web/sdk/admin/views/users/details/security/sessions/revoke-session-final-confirm.tsx @@ -1,12 +1,9 @@ import { + AlertDialog, Button, - toastManager, - Dialog, - Flex, - Text + toastManager } from '@raystack/apsara'; import { handleConnectError } from '~/utils/error'; -import styles from './sessions.module.css'; interface RevokeSessionFinalConfirmProps { isOpen: boolean; @@ -43,48 +40,41 @@ export const RevokeSessionFinalConfirm = ({ }; return ( - - - - Revoke - - + + + + Revoke + + Are you sure you want to revoke this session? This action cannot be undone. + + - - - - Are you sure you want to revoke this session? This action cannot be undone. - - - - - - - - - - - - + + + Cancel + + } + /> + + + + ); }; diff --git a/web/sdk/admin/views/users/details/security/sessions/sessions.module.css b/web/sdk/admin/views/users/details/security/sessions/sessions.module.css index e7bd0f8558..b04d55ce03 100644 --- a/web/sdk/admin/views/users/details/security/sessions/sessions.module.css +++ b/web/sdk/admin/views/users/details/security/sessions/sessions.module.css @@ -40,9 +40,4 @@ border-bottom: 1px solid var(--rs-color-border-base-primary); } -.revokeSessionFinalConfirmBody { - padding: 0 var(--rs-space-7) var(--rs-space-6) var(--rs-space-7); - border-bottom: 1px solid var(--rs-color-border-base-primary); -} - /* Revoke Session Confirm END */ \ No newline at end of file diff --git a/web/sdk/admin/views/webhooks/webhooks/delete/index.tsx b/web/sdk/admin/views/webhooks/webhooks/delete/index.tsx index 6bcf5dd240..5b4484118a 100644 --- a/web/sdk/admin/views/webhooks/webhooks/delete/index.tsx +++ b/web/sdk/admin/views/webhooks/webhooks/delete/index.tsx @@ -1,4 +1,4 @@ -import { Button, Dialog, Flex, Text, toastManager } from "@raystack/apsara"; +import { AlertDialog, Button, toastManager } from "@raystack/apsara"; import type { useMutation } from "@connectrpc/connect-query"; import { handleConnectError } from "~/utils/error"; @@ -41,45 +41,41 @@ export function DeleteWebhookDialog({ }; return ( - - - - - - Delete Webhook - - - Are you sure you want to delete this webhook - {webhookDescription ? ` "${webhookDescription}"` : ""}? This action - cannot be undone. - - - - - - - - - - + + + + Delete Webhook + + Are you sure you want to delete this webhook + {webhookDescription ? ` "${webhookDescription}"` : ""}? This action + cannot be undone. + + + + + Cancel + + } + /> + + + + ); }