Implement full tab widget frontend (#19568)
https://github.com/user-attachments/assets/488e0145-ff49-4205-8fd3-0eb4f614c054
This commit is contained in:
committed by
GitHub
parent
8425afd930
commit
6829fc315a
+4
-1
@@ -16,6 +16,7 @@ import {
|
||||
type IconComponent,
|
||||
} from 'twenty-ui/display';
|
||||
import { ThemeContext } from 'twenty-ui/theme-constants';
|
||||
import { PageLayoutTabLayoutMode } from '~/generated-metadata/graphql';
|
||||
|
||||
type PageLayoutHeaderInfo = {
|
||||
headerIcon: IconComponent | undefined;
|
||||
@@ -65,10 +66,12 @@ export const usePageLayoutHeaderInfo = ({
|
||||
? tab.title
|
||||
: '';
|
||||
|
||||
const isCanvasTab = tab.layoutMode === PageLayoutTabLayoutMode.CANVAS;
|
||||
|
||||
return {
|
||||
headerIcon: IconAppWindow,
|
||||
headerIconColor: iconColor,
|
||||
headerType: t`Tab`,
|
||||
headerType: isCanvasTab ? t`Full tab widget` : t`Tab`,
|
||||
title,
|
||||
isReadonly: false,
|
||||
tab,
|
||||
|
||||
Reference in New Issue
Block a user