Skip to content

Commit ecc8c31

Browse files
Remove unnecessary templates page (#7234)
Do not show in changelog
1 parent 1c85522 commit ecc8c31

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

newIDE/app/src/MainFrame/EditorContainers/HomePage/CreateSection/index.js

+1-22
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ const CreateSection = ({
146146
const [initialWidgetToScrollTo, setInitialWidgetToScrollTo] = React.useState(
147147
null
148148
);
149-
const [showAllGameTemplates, setShowAllGameTemplates] = React.useState(false);
150149
const { routeArguments, removeRouteArguments } = React.useContext(
151150
RouterContext
152151
);
@@ -445,26 +444,6 @@ const CreateSection = ({
445444
);
446445
}
447446

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-
468447
return (
469448
<I18n>
470449
{({ i18n }) => (
@@ -610,7 +589,7 @@ const CreateSection = ({
610589
<Trans>Start from a template</Trans>
611590
</Text>
612591
<FlatButton
613-
onClick={() => setShowAllGameTemplates(true)}
592+
onClick={onOpenNewProjectSetupDialog}
614593
label={
615594
isMobile ? (
616595
<Trans>Browse</Trans>

newIDE/app/src/ProjectCreation/EmptyAndStartingPointProjects.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const EmptyProjectTile = ({
5353
onSelectEmptyProject();
5454
}
5555
}}
56+
id="empty-project-tile"
5657
>
5758
<Column alignItems="center" justifyContent="center" expand>
5859
<Add />

0 commit comments

Comments
 (0)