diff --git a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx index 5846dcd0f..e08946ee4 100644 --- a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx +++ b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx @@ -9,7 +9,6 @@ import { recordStoreFamilyState } from '@/object-record/record-store/states/reco import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { RightDrawerFooter } from '@/ui/layout/right-drawer/components/RightDrawerFooter'; import { ShowPageLeftContainer } from '@/ui/layout/show-page/components/ShowPageLeftContainer'; -import { ShowPageTabListFromUrlOptionalEffect } from '@/ui/layout/show-page/components/ShowPageTabListFromUrlOptionalEffect'; import { SingleTabProps, TabList } from '@/ui/layout/tab/components/TabList'; import { useTabList } from '@/ui/layout/tab/hooks/useTabList'; import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; @@ -126,16 +125,12 @@ export const ShowPageSubContainer = ({ )} 1}> - tab.id)} - /> {(isMobile || isInRightDrawer) && summaryCard} diff --git a/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx b/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx index 444ecfe4e..ec3c6d965 100644 --- a/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx +++ b/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx @@ -1,3 +1,4 @@ +import { TabListFromUrlOptionalEffect } from '@/ui/layout/tab/components/TabListFromUrlOptionalEffect'; import { useTabList } from '@/ui/layout/tab/hooks/useTabList'; import { TabListScope } from '@/ui/layout/tab/scopes/TabListScope'; import { LayoutCard } from '@/ui/layout/tab/types/LayoutCard'; @@ -25,6 +26,7 @@ type TabListProps = { loading?: boolean; behaveAsLinks?: boolean; className?: string; + isInRightDrawer?: boolean; }; const StyledContainer = styled.div` @@ -41,6 +43,7 @@ export const TabList = ({ tabListInstanceId, loading, behaveAsLinks = true, + isInRightDrawer, className, }: TabListProps) => { const visibleTabs = tabs.filter((tab) => !tab.hide); @@ -59,6 +62,11 @@ export const TabList = ({ return ( + tab.id)} + /> { +}: TabListFromUrlOptionalEffectProps) => { const location = useLocation(); const { activeTabId, setActiveTabId } = useTabList(componentInstanceId);