@@ -7,7 +7,8 @@ import { FloatingRightPanelButtons } from 'features/ui/components/FloatingRightP
7
7
import type {
8
8
AutoLayoutDockviewComponents ,
9
9
AutoLayoutGridviewComponents ,
10
- PanelParameters ,
10
+ DockviewPanelParameters ,
11
+ GridviewPanelParameters ,
11
12
RootLayoutGridviewComponents ,
12
13
} from 'features/ui/layouts/auto-layout-context' ;
13
14
import { AutoLayoutProvider , useAutoLayoutContext , withPanelContainer } from 'features/ui/layouts/auto-layout-context' ;
@@ -57,25 +58,27 @@ const mainPanelComponents: AutoLayoutDockviewComponents = {
57
58
58
59
const initializeMainPanelLayout = ( tab : TabName , api : DockviewApi ) => {
59
60
navigationApi . registerContainer ( tab , 'main' , api , ( ) => {
60
- const launchpad = api . addPanel < PanelParameters > ( {
61
+ const launchpad = api . addPanel < DockviewPanelParameters > ( {
61
62
id : LAUNCHPAD_PANEL_ID ,
62
63
component : LAUNCHPAD_PANEL_ID ,
63
64
title : t ( 'ui.panels.launchpad' ) ,
64
65
tabComponent : DOCKVIEW_TAB_LAUNCHPAD_ID ,
65
66
params : {
66
67
tab,
67
68
focusRegion : 'launchpad' ,
69
+ i18nKey : 'ui.panels.launchpad'
68
70
} ,
69
71
} ) ;
70
72
71
- api . addPanel < PanelParameters > ( {
73
+ api . addPanel < DockviewPanelParameters > ( {
72
74
id : VIEWER_PANEL_ID ,
73
75
component : VIEWER_PANEL_ID ,
74
76
title : t ( 'ui.panels.imageViewer' ) ,
75
77
tabComponent : DOCKVIEW_TAB_PROGRESS_ID ,
76
78
params : {
77
79
tab,
78
80
focusRegion : 'viewer' ,
81
+ i18nKey : 'ui.panels.imageViewer'
79
82
} ,
80
83
position : {
81
84
direction : 'within' ,
@@ -123,7 +126,7 @@ const rightPanelComponents: AutoLayoutGridviewComponents = {
123
126
124
127
const initializeRightPanelLayout = ( tab : TabName , api : GridviewApi ) => {
125
128
navigationApi . registerContainer ( tab , 'right' , api , ( ) => {
126
- const gallery = api . addPanel < PanelParameters > ( {
129
+ const gallery = api . addPanel < GridviewPanelParameters > ( {
127
130
id : GALLERY_PANEL_ID ,
128
131
component : GALLERY_PANEL_ID ,
129
132
minimumWidth : RIGHT_PANEL_MIN_SIZE_PX ,
@@ -134,7 +137,7 @@ const initializeRightPanelLayout = (tab: TabName, api: GridviewApi) => {
134
137
} ,
135
138
} ) ;
136
139
137
- const boards = api . addPanel < PanelParameters > ( {
140
+ const boards = api . addPanel < GridviewPanelParameters > ( {
138
141
id : BOARDS_PANEL_ID ,
139
142
component : BOARDS_PANEL_ID ,
140
143
minimumHeight : BOARD_PANEL_MIN_HEIGHT_PX ,
@@ -179,7 +182,7 @@ const leftPanelComponents: AutoLayoutGridviewComponents = {
179
182
180
183
const initializeLeftPanelLayout = ( tab : TabName , api : GridviewApi ) => {
181
184
navigationApi . registerContainer ( tab , 'left' , api , ( ) => {
182
- api . addPanel < PanelParameters > ( {
185
+ api . addPanel < GridviewPanelParameters > ( {
183
186
id : SETTINGS_PANEL_ID ,
184
187
component : SETTINGS_PANEL_ID ,
185
188
params : {
0 commit comments