File tree 2 files changed +2
-22
lines changed
MainFrame/EditorContainers/HomePage/CreateSection
2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,6 @@ const CreateSection = ({
146
146
const [ initialWidgetToScrollTo , setInitialWidgetToScrollTo ] = React . useState (
147
147
null
148
148
) ;
149
- const [ showAllGameTemplates , setShowAllGameTemplates ] = React . useState ( false ) ;
150
149
const { routeArguments, removeRouteArguments } = React . useContext (
151
150
RouterContext
152
151
) ;
@@ -445,26 +444,6 @@ const CreateSection = ({
445
444
) ;
446
445
}
447
446
448
- if ( showAllGameTemplates ) {
449
- return (
450
- < SectionContainer
451
- backAction = { ( ) => setShowAllGameTemplates ( false ) }
452
- flexBody
453
- >
454
- < SectionRow expand >
455
- < ExampleStore
456
- onSelectExampleShortHeader = { onSelectExampleShortHeader }
457
- onSelectPrivateGameTemplateListingData = {
458
- onSelectPrivateGameTemplateListingData
459
- }
460
- i18n = { i18n }
461
- columnsCount = { getExampleItemsColumns ( windowSize , isLandscape ) }
462
- />
463
- </ SectionRow >
464
- </ SectionContainer >
465
- ) ;
466
- }
467
-
468
447
return (
469
448
< I18n >
470
449
{ ( { i18n } ) => (
@@ -610,7 +589,7 @@ const CreateSection = ({
610
589
< Trans > Start from a template</ Trans >
611
590
</ Text >
612
591
< FlatButton
613
- onClick = { ( ) => setShowAllGameTemplates ( true ) }
592
+ onClick = { onOpenNewProjectSetupDialog }
614
593
label = {
615
594
isMobile ? (
616
595
< Trans > Browse</ Trans >
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const EmptyProjectTile = ({
53
53
onSelectEmptyProject ( ) ;
54
54
}
55
55
} }
56
+ id = "empty-project-tile"
56
57
>
57
58
< Column alignItems = "center" justifyContent = "center" expand >
58
59
< Add />
You can’t perform that action at this time.
0 commit comments