diff --git a/apps/web/src/components/features/global/LazyGlobalErrorCard.tsx b/apps/web/src/components/features/global/LazyGlobalErrorCard.tsx
index 673399417..09c20c248 100644
--- a/apps/web/src/components/features/global/LazyGlobalErrorCard.tsx
+++ b/apps/web/src/components/features/global/LazyGlobalErrorCard.tsx
@@ -1,5 +1,6 @@
import type { ErrorRouteComponent } from '@tanstack/react-router';
import { lazy, Suspense, useEffect, useState } from 'react';
+import { LazyErrorBoundary } from './LazyErrorBoundary';
// Lazy load the GlobalErrorCard component
const GlobalErrorCard = lazy(() =>
@@ -27,16 +28,20 @@ export const LazyGlobalErrorCard: ErrorRouteComponent = (props) => {
}
return (
- }>
-
-
+
+ }>
+
+
+
);
};
export const LazyCatchErrorCard = (error: Error) => {
return (
- }>
- {}} />
-
+
+ }>
+ {}} />
+
+
);
};
diff --git a/apps/web/src/components/ui/modal/ModalBase.tsx b/apps/web/src/components/ui/modal/ModalBase.tsx
index 72ceba8e7..d428acc33 100644
--- a/apps/web/src/components/ui/modal/ModalBase.tsx
+++ b/apps/web/src/components/ui/modal/ModalBase.tsx
@@ -1,6 +1,6 @@
import * as DialogPrimitive from '@radix-ui/react-dialog';
import * as React from 'react';
-import { Xmark } from '@/components/ui/icons';
+import Xmark from '@/components/ui/icons/NucleoIconOutlined/xmark';
import { cn } from '@/lib/utils';
import { Button } from '../buttons/Button';
diff --git a/apps/web/src/context/BusterNotifications/BusterNotifications.tsx b/apps/web/src/context/BusterNotifications/BusterNotifications.tsx
index 427c8dcf5..5dc22e566 100644
--- a/apps/web/src/context/BusterNotifications/BusterNotifications.tsx
+++ b/apps/web/src/context/BusterNotifications/BusterNotifications.tsx
@@ -1,17 +1,14 @@
import type React from 'react';
import type { PropsWithChildren } from 'react';
-import { lazy, Suspense, useCallback } from 'react';
+import { Suspense, useCallback } from 'react';
import { type ExternalToast, toast } from 'sonner';
import { createContext, useContextSelector } from 'use-context-selector';
+import { ConfirmModal } from '@/components/ui/modal/ConfirmModal';
import { Toaster } from '@/components/ui/toaster/Toaster';
import { useConfirmModalContext } from './useConfirmModal';
export type NotificationType = 'success' | 'info' | 'warning' | 'error';
-const ConfirmModal = lazy(() =>
- import('@/components/ui/modal/ConfirmModal').then((mod) => ({ default: mod.ConfirmModal }))
-);
-
export type NotificationProps = {
type?: NotificationType;
title?: string;
@@ -136,9 +133,7 @@ export const BusterNotificationsProvider: React.FC = ({ child
{children}
- ...}>
-
-
+
);
};
diff --git a/apps/web/src/controllers/TeamsControllers/UserTeamsController/UserTeamsController.tsx b/apps/web/src/controllers/TeamsControllers/UserTeamsController/UserTeamsController.tsx
index 0ea990f69..1261c3807 100644
--- a/apps/web/src/controllers/TeamsControllers/UserTeamsController/UserTeamsController.tsx
+++ b/apps/web/src/controllers/TeamsControllers/UserTeamsController/UserTeamsController.tsx
@@ -1,6 +1,7 @@
import type React from 'react';
import { lazy, Suspense, useMemo, useState } from 'react';
import { useGetUserTeams } from '@/api/buster_rest/users/permissions';
+import { LazyErrorBoundary } from '@/components/features/global/LazyErrorBoundary';
import { PermissionSearchAndListWrapper } from '@/components/features/permissions';
import { Button } from '@/components/ui/buttons';
import { Plus } from '@/components/ui/icons';
@@ -49,9 +50,11 @@ export const UserTeamsController: React.FC<{ userId: string }> = ({ userId }) =>
- ...}>
-
-
+
+ ...}>
+
+
+
>
);
};
diff --git a/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools-impl.tsx b/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools-impl.tsx
index 7311cde4e..1a7baaeb4 100644
--- a/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools-impl.tsx
+++ b/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools-impl.tsx
@@ -1,6 +1,7 @@
import { ClientOnly } from '@tanstack/react-router';
import sample from 'lodash/sample';
import React, { lazy, Suspense, useState } from 'react';
+import { LazyErrorBoundary } from '@/components/features/global/LazyErrorBoundary';
import { useMount } from '@/hooks/useMount';
import { isServer } from '@/lib/window';
import image1 from './images/image1.png';
@@ -85,45 +86,47 @@ const TanstackDevtoolsImpl: React.FC = React.memo(() => {
}
return (
-
- ...}>
- ...}>
-
-
- ),
- },
- {
- name: 'Tanstack Router',
- render: (
- ...}>
-
-
- ),
- },
- {
- name: 'Metric Original Store',
- render: (
- ...}>
-
-
- ),
- },
- ]}
- />
-
-
+
+
+ ...}>
+ ...}>
+
+
+ ),
+ },
+ {
+ name: 'Tanstack Router',
+ render: (
+ ...}>
+
+
+ ),
+ },
+ {
+ name: 'Metric Original Store',
+ render: (
+ ...}>
+
+
+ ),
+ },
+ ]}
+ />
+
+
+
);
});
diff --git a/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools.tsx b/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools.tsx
index bf401db29..209cc80fe 100644
--- a/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools.tsx
+++ b/apps/web/src/integrations/tanstack-dev-tools/tanstack-devtools.tsx
@@ -1,6 +1,7 @@
import { ClientOnly } from '@tanstack/react-router';
import React, { lazy, Suspense, useEffect, useState } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
+import { LazyErrorBoundary } from '@/components/features/global/LazyErrorBoundary';
import { isDev } from '@/config/dev';
import { env } from '@/env';
import { isServer } from '@/lib/window';
@@ -43,9 +44,11 @@ export const TanstackDevtools: React.FC = React.memo(() => {
return (
- ...}>
-
-
+
+ ...}>
+
+
+
);
});