{isShowForm && (
- <>
+
{
File should not exceed {MAX_MB_FILE} MB
)}
- >
+
)}
{loading && (
@@ -107,29 +110,21 @@ const ImportDatabasesDialog = ({ onClose }: Props) => {
Uploading...
)}
-
- {data && data.success !== 0 && (
-
-
-
- Successfully added {data.success} of {data.total} database connections
-
-
- )}
-
- {(data?.success === 0 || error) && (
+ {data && ()}
+ {error && (
-
+
Failed to add database connections
+ {error}
)}