Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove broken link and redirect to wiki #5967

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import GridListTile from '@material-ui/core/GridListTile';
import { makeStyles } from '@material-ui/core/styles';
import ImageTileRow from '../../../../UI/ImageTileRow';
import { formatTutorialToImageTileComponent, TUTORIAL_CATEGORY_TEXTS } from '.';
import InAppTutorialContext from '../../../../InAppTutorial/InAppTutorialContext';
import GuidedLessons from '../InAppTutorials/GuidedLessons';
import ChevronArrowRight from '../../../../UI/CustomSvgIcons/ChevronArrowRight';
import Upload from '../../../../UI/CustomSvgIcons/Upload';
Expand Down Expand Up @@ -108,28 +107,21 @@ export const TutorialsRow = ({
);

type Props = {|
onStartTutorial: () => void,
onOpenExampleStore: () => void,
onTabChange: (tab: HomeTab) => void,
onOpenHelpFinder: () => void,
onSelectCategory: (?TutorialCategory) => void,
tutorials: Array<Tutorial>,
selectInAppTutorial: (tutorialId: string) => void,
|};

const MainPage = ({
onStartTutorial,
onOpenExampleStore,
onTabChange,
onOpenHelpFinder,
onSelectCategory,
tutorials,
selectInAppTutorial,
}: Props) => {
const classes = useStyles();
const { currentlyRunningInAppTutorial } = React.useContext(
InAppTutorialContext
);
const windowWidth = useResponsiveWindowWidth();
const isMobile = windowWidth === 'small';
const isTabletOrSmallLaptop =
Expand All @@ -140,22 +132,11 @@ const MainPage = ({
action: () => void,
disabled?: boolean,
}[] = [
{
title: <Trans>Guided Tour</Trans>,
description: (
<Trans>
Learn the fundamentals of the editor with our assisted tutorial.
</Trans>
),
action: () => {
onStartTutorial();
},
disabled: !!currentlyRunningInAppTutorial,
},
{
title: <Trans>Documentation</Trans>,
description: <Trans>Find the complete documentation on everything</Trans>,
action: onOpenHelpFinder,
action: () =>
Window.openExternalURL('https://wiki.gdevelop.io/gdevelop5/'),
},
{
title: <Trans>Examples</Trans>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,12 @@ const styles = {
type Props = {|
onOpenExampleStore: () => void,
onTabChange: (tab: HomeTab) => void,
onOpenHelpFinder: () => void,
selectInAppTutorial: (tutorialId: string) => void,
|};

const LearnSection = ({
onOpenExampleStore,
onTabChange,
onOpenHelpFinder,
selectInAppTutorial,
}: Props) => {
const {
Expand Down Expand Up @@ -127,8 +125,6 @@ const LearnSection = ({
return !selectedCategory ? (
<MainPage
onOpenExampleStore={onOpenExampleStore}
onOpenHelpFinder={onOpenHelpFinder}
onStartTutorial={() => onTabChange('get-started')}
onTabChange={onTabChange}
onSelectCategory={setSelectedCategory}
tutorials={tutorials}
Expand Down
4 changes: 0 additions & 4 deletions newIDE/app/src/MainFrame/EditorContainers/HomePage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ type Props = {|
onOpenProjectManager: () => void,

// Other dialogs opening:
onOpenHelpFinder: () => void,
onOpenLanguageDialog: () => void,
onOpenProfile: () => void,
selectInAppTutorial: (tutorialId: string) => void,
Expand Down Expand Up @@ -134,7 +133,6 @@ export const HomePage = React.memo<Props>(
onOpenExampleStoreWithPrivateGameTemplateListingData,
onOpenPrivateGameTemplateListingData,
onOpenProjectManager,
onOpenHelpFinder,
onOpenLanguageDialog,
onOpenProfile,
setToolbar,
Expand Down Expand Up @@ -413,7 +411,6 @@ export const HomePage = React.memo<Props>(
<LearnSection
onOpenExampleStore={onOpenExampleStore}
onTabChange={setActiveTab}
onOpenHelpFinder={onOpenHelpFinder}
selectInAppTutorial={selectInAppTutorial}
/>
)}
Expand Down Expand Up @@ -481,7 +478,6 @@ export const renderHomePageContainer = (
}
onOpenNewProjectSetupDialog={props.onOpenNewProjectSetupDialog}
onOpenProjectManager={props.onOpenProjectManager}
onOpenHelpFinder={props.onOpenHelpFinder}
onOpenLanguageDialog={props.onOpenLanguageDialog}
onOpenProfile={props.onOpenProfile}
selectInAppTutorial={props.selectInAppTutorial}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const WrappedHomePage = ({
action('onOpenPrivateGameTemplateListingData')()
}
onOpenProjectManager={() => action('onOpenProjectManager')()}
onOpenHelpFinder={() => action('onOpenHelpFinder')()}
onOpenLanguageDialog={() => action('open language dialog')()}
onOpenNewProjectSetupDialog={() =>
action('onOpenNewProjectSetupDialog')()
Expand Down