diff --git a/apps/app/components/project/confirm-project-member-remove.tsx b/apps/app/components/project/confirm-project-member-remove.tsx index 4ecb30218..646400cde 100644 --- a/apps/app/components/project/confirm-project-member-remove.tsx +++ b/apps/app/components/project/confirm-project-member-remove.tsx @@ -53,7 +53,7 @@ const ConfirmProjectMemberRemove: React.FC = ({ isOpen, onClose, data, ha leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -68,9 +68,9 @@ const ConfirmProjectMemberRemove: React.FC = ({ isOpen, onClose, data, ha

- Are you sure you want to remove member - {`"`} - {data?.email} - {`"`} ? They will no longer have access to this project. This action + Are you sure you want to remove member- {" "} + {data?.email} + ? They will no longer have access to this project. This action cannot be undone.

diff --git a/apps/app/components/states/delete-state-modal.tsx b/apps/app/components/states/delete-state-modal.tsx index 2496a28da..a3b09d0ec 100644 --- a/apps/app/components/states/delete-state-modal.tsx +++ b/apps/app/components/states/delete-state-modal.tsx @@ -104,7 +104,7 @@ export const DeleteStateModal: React.FC = ({ isOpen, onClose, data }) => leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -119,9 +119,9 @@ export const DeleteStateModal: React.FC = ({ isOpen, onClose, data }) =>

- Are you sure you want to delete state - {`"`} + Are you sure you want to delete state- {" "} {data?.name} - {`"`} ? All of the data related to the state will be permanently removed. + ? All of the data related to the state will be permanently removed. This action cannot be undone.

diff --git a/apps/app/components/views/delete-view-modal.tsx b/apps/app/components/views/delete-view-modal.tsx index c93ea1f92..7563cdf40 100644 --- a/apps/app/components/views/delete-view-modal.tsx +++ b/apps/app/components/views/delete-view-modal.tsx @@ -96,7 +96,7 @@ export const DeleteViewModal: React.FC = ({ isOpen, data, onClose, onSucc leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -111,9 +111,9 @@ export const DeleteViewModal: React.FC = ({ isOpen, data, onClose, onSucc

- Are you sure you want to delete view - {`"`} - {data?.name} - {`?"`} All of the data related to the view will be permanently removed. + Are you sure you want to delete view- {" "} + {data?.name} + ? All of the data related to the view will be permanently removed. This action cannot be undone.

diff --git a/apps/app/components/views/single-view-item.tsx b/apps/app/components/views/single-view-item.tsx index 62e7eb840..5b8bab19e 100644 --- a/apps/app/components/views/single-view-item.tsx +++ b/apps/app/components/views/single-view-item.tsx @@ -20,16 +20,11 @@ import { VIEWS_LIST } from "constants/fetch-keys"; import useToast from "hooks/use-toast"; type Props = { - view: IView, - setSelectedView: React.Dispatch>, + view: IView; + setSelectedView: React.Dispatch>; }; - -export const SingleViewItem: React.FC = ({ - view, - setSelectedView, -}) => { - +export const SingleViewItem: React.FC = ({ view, setSelectedView }) => { const router = useRouter(); const { workspaceSlug, projectId } = router.query; @@ -86,47 +81,63 @@ export const SingleViewItem: React.FC = ({ }; return ( -
-
-
-
- - - {view.name} - -
-
- { - view.is_favorite ? ( - - ) : ( - - ) - } - - { - setSelectedView(view); - }} - > - - - Delete - - - + <> + +
+
+
+
+ + {view.name} +
+
+ {view.is_favorite ? ( + + ) : ( + + )} + + { + e.preventDefault(); + e.stopPropagation(); + setSelectedView(view); + }} + > + + + Delete + + + +
+
+ {view?.description && ( +

+ {view.description} +

+ )}
- {view?.description &&

- {view.description} -

} -
-
- ) -} + + + ); +}; diff --git a/apps/app/components/workspace/confirm-workspace-member-remove.tsx b/apps/app/components/workspace/confirm-workspace-member-remove.tsx index 0dee47008..c70c5c98d 100644 --- a/apps/app/components/workspace/confirm-workspace-member-remove.tsx +++ b/apps/app/components/workspace/confirm-workspace-member-remove.tsx @@ -53,7 +53,7 @@ const ConfirmWorkspaceMemberRemove: React.FC = ({ isOpen, onClose, data, leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -68,9 +68,9 @@ const ConfirmWorkspaceMemberRemove: React.FC = ({ isOpen, onClose, data,

- Are you sure you want to remove member - {`"`} - {data?.email} - {`"`} ? They will no longer have access to this workspace. This action + Are you sure you want to remove member- {" "} + {data?.email} + ? They will no longer have access to this workspace. This action cannot be undone.