diff --git a/ui/src/components/componentEditor/ComponentPreview.tsx b/ui/src/components/componentEditor/ComponentPreview.tsx index e3f2ada2..52866425 100644 --- a/ui/src/components/componentEditor/ComponentPreview.tsx +++ b/ui/src/components/componentEditor/ComponentPreview.tsx @@ -16,7 +16,13 @@ const ComponentPreview: React.FC = ({ componentName, clas // components dizisinin varlığını kontrol et if (loading || !components || !Array.isArray(components)) { - return
Bileşenler yükleniyor...
+ return ( +
+
+
+
+
+ ) } // Belirtilen bileşeni bul diff --git a/ui/src/components/componentEditor/DynamicRenderer.tsx b/ui/src/components/componentEditor/DynamicRenderer.tsx index 253bd8da..a29f6fb3 100644 --- a/ui/src/components/componentEditor/DynamicRenderer.tsx +++ b/ui/src/components/componentEditor/DynamicRenderer.tsx @@ -80,7 +80,7 @@ const DynamicRenderer: React.FC = ({ const Timeline = React.lazy(() => import('../ui/Timeline')) const Tooltip = React.lazy(() => import('../ui/Tooltip')) const Upload = React.lazy(() => import('../ui/Upload')) - + const [Component, setComponent] = useState | null>(null) const { getComponentByName, components } = useComponents() @@ -190,7 +190,14 @@ const DynamicRenderer: React.FC = ({ } }, [componentName, externalDeps, components, getComponentByName]) - if (!Component) return
Yükleniyor...
+ if (!Component) + return ( +
+
+
+
+
+ ) return ( diff --git a/ui/src/components/developerKit/ComponentManager.tsx b/ui/src/components/developerKit/ComponentManager.tsx index de69bc1f..678a79fb 100644 --- a/ui/src/components/developerKit/ComponentManager.tsx +++ b/ui/src/components/developerKit/ComponentManager.tsx @@ -13,7 +13,7 @@ import { FaPuzzlePiece, FaCheckCircle, FaTimesCircle, -} from 'react-icons/fa'; +} from 'react-icons/fa' import { ROUTES_ENUM } from '@/routes/route.constant' import { useLocalization } from '@/utils/hooks/useLocalization' @@ -155,8 +155,10 @@ const ComponentManager: React.FC = () => { {/* Components List */} {loading ? ( -
-
Bileşenler yükleniyor...
+
+
+
+
) : filteredComponents?.length > 0 ? (
diff --git a/ui/src/components/orders/TenantForm.tsx b/ui/src/components/orders/TenantForm.tsx index e93adbf9..05c82c68 100644 --- a/ui/src/components/orders/TenantForm.tsx +++ b/ui/src/components/orders/TenantForm.tsx @@ -18,6 +18,7 @@ import { import React, { useState } from 'react' import { useNavigate } from 'react-router-dom' import { useLocalization } from '@/utils/hooks/useLocalization' +import { ROUTES_ENUM } from '@/routes/route.constant' interface TenantFormProps { onSubmit: (tenant: CustomTenantDto) => void @@ -279,7 +280,9 @@ export const TenantForm: React.FC = ({ onSubmit }) => {
- +
= ({ onSubmit }) => {
- +
= ({ onSubmit }) => {
- +
= ({ onSubmit }) => {
- +