Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Remove unused 'Cancel' buttons from multiple dialog components for a cleaner UI. Update text in CreateNamespaceModal to use HTML entity for apostrophe.

Salman-Ahamed7279b452ae99
diff --git a/packages/app/src/react/features/data-pool/components/CreateNamespaceModal.tsx b/packages/app/src/react/features/data-pool/components/CreateNamespaceModal.tsx
index 395b0ba1..ee4567b5 100644
--- a/packages/app/src/react/features/data-pool/components/CreateNamespaceModal.tsx
+++ b/packages/app/src/react/features/data-pool/components/CreateNamespaceModal.tsx
@@ -235,8 +235,8 @@ export const CreateNamespaceModal: FC<CreateNamespaceModalProps> = ({
<DialogHeader>
<DialogTitle>Create Data Space</DialogTitle>
<p className="text-sm text-gray-600 mt-1">
- Set up a Data Space to unlock your agents' ability to search, automate, and learn from
- your data — using RAG and other tools
+ Set up a Data Space to unlock your agents&apos; ability to search, automate, and learn
+ from your data — using RAG and other tools
</p>
</DialogHeader>
@@ -420,13 +420,6 @@ export const CreateNamespaceModal: FC<CreateNamespaceModalProps> = ({
</div>
<DialogFooter>
- <CustomButton
- variant="secondary"
- type="button"
- label="Cancel"
- handleClick={onClose}
- disabled={isCreating}
- />
<CustomButton
variant="primary"
type="submit"
diff --git a/packages/app/src/react/features/data-pool/components/DeleteDatasourceDialog.tsx b/packages/app/src/react/features/data-pool/components/DeleteDatasourceDialog.tsx
index e9dc31c6..8dde602f 100644
--- a/packages/app/src/react/features/data-pool/components/DeleteDatasourceDialog.tsx
+++ b/packages/app/src/react/features/data-pool/components/DeleteDatasourceDialog.tsx
@@ -99,12 +99,6 @@ export const DeleteDatasourceDialog: FC<DeleteDatasourceDialogProps> = ({
</div>
<DialogFooter>
- <CustomButton
- variant="secondary"
- label="Cancel"
- handleClick={onClose}
- disabled={isDeleting}
- />
<CustomButton
variant="primary"
label={isDeleting ? 'Deleting...' : 'Delete Datasource'}
@@ -118,4 +112,3 @@ export const DeleteDatasourceDialog: FC<DeleteDatasourceDialogProps> = ({
</Dialog>
);
};
-
diff --git a/packages/app/src/react/features/data-pool/components/DeleteNamespaceDialog.tsx b/packages/app/src/react/features/data-pool/components/DeleteNamespaceDialog.tsx
index 28174a22..d7c3ae16 100644
--- a/packages/app/src/react/features/data-pool/components/DeleteNamespaceDialog.tsx
+++ b/packages/app/src/react/features/data-pool/components/DeleteNamespaceDialog.tsx
@@ -99,12 +99,6 @@ export const DeleteNamespaceDialog: FC<DeleteNamespaceDialogProps> = ({
</div>
<DialogFooter>
- <CustomButton
- variant="secondary"
- label="Cancel"
- handleClick={onClose}
- disabled={isDeleting}
- />
<CustomButton
variant="primary"
label={isDeleting ? 'Deleting...' : 'Delete Data Space'}
@@ -119,4 +113,3 @@ export const DeleteNamespaceDialog: FC<DeleteNamespaceDialogProps> = ({
</Dialog>
);
};
-
diff --git a/packages/app/src/react/features/data-pool/components/UploadDatasourceDialog.tsx b/packages/app/src/react/features/data-pool/components/UploadDatasourceDialog.tsx
index d27fd5e0..ef07701e 100644
--- a/packages/app/src/react/features/data-pool/components/UploadDatasourceDialog.tsx
+++ b/packages/app/src/react/features/data-pool/components/UploadDatasourceDialog.tsx
@@ -427,12 +427,6 @@ export const UploadDatasourceDialog: FC<UploadDatasourceDialogProps> = ({
</div>
<DialogFooter>
- <CustomButton
- variant="secondary"
- label="Cancel"
- handleClick={onClose}
- disabled={isUploading}
- />
<CustomButton
variant="primary"
label={isUploading ? 'Uploading...' : 'Upload'}