diff --git a/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx b/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx
index 8e758e67f..fc6c82244 100644
--- a/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx
+++ b/packages/twenty-front/src/modules/error-handler/components/AppErrorBoundary.tsx
@@ -1,6 +1,6 @@
+import * as Sentry from '@sentry/react';
import { ErrorInfo, ReactNode } from 'react';
import { ErrorBoundary } from 'react-error-boundary';
-import * as Sentry from '@sentry/react';
import { GenericErrorFallback } from '@/error-handler/components/GenericErrorFallback';
diff --git a/packages/twenty-front/src/modules/error-handler/components/GenericErrorFallback.tsx b/packages/twenty-front/src/modules/error-handler/components/GenericErrorFallback.tsx
index 9fcb32336..8b3c64705 100644
--- a/packages/twenty-front/src/modules/error-handler/components/GenericErrorFallback.tsx
+++ b/packages/twenty-front/src/modules/error-handler/components/GenericErrorFallback.tsx
@@ -1,5 +1,6 @@
-import { ThemeProvider, useTheme } from '@emotion/react';
-import isEmpty from 'lodash.isempty';
+import { PageBody } from '@/ui/layout/page/components/PageBody';
+import { PageContainer } from '@/ui/layout/page/components/PageContainer';
+import { PageHeader } from '@/ui/layout/page/components/PageHeader';
import { useEffect, useState } from 'react';
import { FallbackProps } from 'react-error-boundary';
import { useLocation } from 'react-router-dom';
@@ -11,7 +12,6 @@ import {
AnimatedPlaceholderEmptyTitle,
Button,
IconRefresh,
- THEME_LIGHT,
} from 'twenty-ui';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
@@ -31,27 +31,28 @@ export const GenericErrorFallback = ({
}
}, [previousLocation, location, resetErrorBoundary]);
- const theme = useTheme();
-
return (
-
-
-
-
-
- Server’s on a coffee break
-
-
- {error.message}
-
-
-
-
+
+
+
+
+
+
+
+ Server’s on a coffee break
+
+
+ {error.message}
+
+
+
+
+
);
};
diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx
index 2a7fcf97a..94821fa81 100644
--- a/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx
@@ -10,11 +10,11 @@ import { SignInBackgroundMockPage } from '@/sign-in-background-mock/components/S
import { useShowAuthModal } from '@/ui/layout/hooks/useShowAuthModal';
import { NAV_DRAWER_WIDTHS } from '@/ui/navigation/navigation-drawer/constants/NavDrawerWidths';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
-import { useScreenSize } from 'twenty-ui';
import { css, Global, useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { AnimatePresence, LayoutGroup, motion } from 'framer-motion';
import { Outlet } from 'react-router-dom';
+import { useScreenSize } from 'twenty-ui';
const StyledLayout = styled.div`
background: ${({ theme }) => theme.background.noisy};
diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/PageHeader.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/PageHeader.tsx
index db981feb4..8bcaf9676 100644
--- a/packages/twenty-front/src/modules/ui/layout/page/components/PageHeader.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page/components/PageHeader.tsx
@@ -80,7 +80,7 @@ const StyledTopBarButtonContainer = styled.div`
`;
type PageHeaderProps = {
- title: ReactNode;
+ title?: ReactNode;
hasClosePageButton?: boolean;
onClosePage?: () => void;
hasPaginationButtons?: boolean;
@@ -147,13 +147,15 @@ export const PageHeader = ({
>
)}
{Icon && }
-
- {typeof title === 'string' ? (
-
- ) : (
- title
- )}
-
+ {title && (
+
+ {typeof title === 'string' ? (
+
+ ) : (
+ title
+ )}
+
+ )}
{children}