Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: sidebar projects menu #377

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type TConfirmProjectDeletionProps = {
data: IProject | null;
};

const ConfirmProjectDeletion: React.FC<TConfirmProjectDeletionProps> = (props) => {
export const DeleteProjectModal: React.FC<TConfirmProjectDeletionProps> = (props) => {
const { isOpen, data, onClose, onSuccess } = props;

const cancelButtonRef = useRef(null);
Expand Down Expand Up @@ -122,12 +122,12 @@ const ConfirmProjectDeletion: React.FC<TConfirmProjectDeletionProps> = (props) =
aria-hidden="true"
/>
</div>
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
<div className="mt-3 w-full text-center sm:mt-0 sm:ml-4 sm:text-left">
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-gray-900">
Delete Project
</Dialog.Title>
<div className="mt-2">
<p className="text-sm text-gray-500 break-all">
<p className="break-all text-sm text-gray-500">
Are you sure you want to delete project - {`"`}
<span className="italic">{selectedProject?.name}</span>
{`"`} ? All of the data related to the project will be permanently
Expand All @@ -136,7 +136,7 @@ const ConfirmProjectDeletion: React.FC<TConfirmProjectDeletionProps> = (props) =
</div>
<div className="my-3 h-0.5 bg-gray-200" />
<div className="mt-3">
<p className="text-sm break-all">
<p className="break-all text-sm">
Enter the project name{" "}
<span className="font-semibold">{selectedProject?.name}</span> to
continue:
Expand Down Expand Up @@ -202,5 +202,3 @@ const ConfirmProjectDeletion: React.FC<TConfirmProjectDeletionProps> = (props) =
</Transition.Root>
);
};

export default ConfirmProjectDeletion;
4 changes: 3 additions & 1 deletion apps/app/components/project/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export * from "./single-project-card";
export * from "./create-project-modal";
export * from "./delete-project-modal";
export * from "./join-project";
export * from "./sidebar-list";
export * from "./single-integration-card";
export * from "./single-project-card";
export * from "./single-sidebar-project";
Loading