Skip to content

The open alternative to Salesforce, designed for AI.

fix: Deactivate & Activate icons should be swapped UI improvements (#6796)

Harshit Singhc5572f1b1eb3
diff --git a/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx b/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx
index f63782fa35e..190bd601667 100644
--- a/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx
+++ b/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx
@@ -1,15 +1,12 @@
import { useState } from 'react';
import { useRecoilValue } from 'recoil';
-import { H2Title } from 'twenty-ui';
+import { H2Title, IconTrash } from 'twenty-ui';
import { useAuth } from '@/auth/hooks/useAuth';
import { currentUserState } from '@/auth/states/currentUserState';
-import {
- ConfirmationModal,
- StyledConfirmationButton,
-} from '@/ui/layout/modal/components/ConfirmationModal';
+import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal';
import { useDeleteCurrentWorkspaceMutation } from '~/generated/graphql';
-
+import { Button } from '@/ui/input/button/components/Button';
export const DeleteWorkspace = () => {
const [isDeleteWorkSpaceModalOpen, setIsDeleteWorkSpaceModalOpen] =
useState(false);
@@ -28,10 +25,12 @@ export const DeleteWorkspace = () => {
return (
<>
<H2Title title="Danger zone" description="Delete your whole workspace" />
- <StyledConfirmationButton
- onClick={() => setIsDeleteWorkSpaceModalOpen(true)}
+ <Button
+ accent="danger"
variant="secondary"
title="Delete workspace"
+ Icon={IconTrash}
+ onClick={() => setIsDeleteWorkSpaceModalOpen(true)}
/>
<ConfirmationModal