@@ -113,6 +113,11 @@ function PanelContent({
113113 useState ( false ) ;
114114
115115 const tabItems : TabItem [ ] = [
116+ {
117+ name : "Projects" ,
118+ description : "List of projects" ,
119+ icon : "folder" ,
120+ } ,
116121 {
117122 name : "Apps" ,
118123 description : "List of apps" ,
@@ -145,27 +150,6 @@ function PanelContent({
145150 </ div >
146151 ) ;
147152 }
148- // Pick project if no project is opened
149- else if ( ! editorContext ?. editorStates . project ) {
150- return (
151- < div className = "bg-content2 h-full w-full space-y-2 overflow-y-auto px-4" >
152- < p className = "text-center text-lg font-medium" > View Projects</ p >
153- < Button
154- className = "w-full"
155- onPress = { ( ) => {
156- setIsProjectSettingsModalOpen ( true ) ;
157- } }
158- >
159- New Project
160- </ Button >
161- < ProjectExplorer />
162- < ProjectSettingsModal
163- isOpen = { isProjectSettingsModalOpen }
164- setIsOpen = { setIsProjectSettingsModalOpen }
165- />
166- </ div >
167- ) ;
168- }
169153
170154 return (
171155 < div className = "relative h-full w-full grid grid-rows-[max-content_auto] overflow-y-hidden" >
@@ -187,10 +171,27 @@ function PanelContent({
187171 < div className = "h-full w-full overflow-y-hidden" >
188172 { tabItems [ selectedTabIndex ] ?. name === "Apps" ? (
189173 < AppExplorer />
190- ) : (
174+ ) : tabItems [ selectedTabIndex ] ?. name === "Workspace" ? (
191175 < FileSystemExplorer setIsMenuOpen = { setIsMenuOpen } />
176+ ) : (
177+ < div className = "bg-content2 h-full w-full space-y-2 overflow-y-auto px-4" >
178+ < p className = "text-center text-lg font-medium" > View Projects</ p >
179+ < Button
180+ className = "w-full"
181+ onPress = { ( ) => {
182+ setIsProjectSettingsModalOpen ( true ) ;
183+ } }
184+ >
185+ New Project
186+ </ Button >
187+ < ProjectExplorer />
188+ </ div >
192189 ) }
193190 </ div >
191+ < ProjectSettingsModal
192+ isOpen = { isProjectSettingsModalOpen }
193+ setIsOpen = { setIsProjectSettingsModalOpen }
194+ />
194195 </ div >
195196 ) ;
196197}
0 commit comments