Move back up links in Learn page and question block

This commit is contained in:
Florian Rival
2024-11-12 17:27:05 +01:00
parent 1172326ae0
commit 83f80b2350

View File

@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
import { I18n } from '@lingui/react';
import { Line, Column, Spacer, LargeSpacer } from '../../../../UI/Grid';
import { Line, Column, Spacer } from '../../../../UI/Grid';
import Text from '../../../../UI/Text';
import Window from '../../../../Utils/Window';
import { Trans } from '@lingui/macro';
@@ -199,21 +199,6 @@ const MainPage = ({
return (
<SectionContainer>
<SectionRow>
<Line justifyContent="space-between" noMargin>
<Text noMargin size="title">
<Trans>Guided lessons</Trans>
</Text>
{showInAppTutorialDeveloperMode && (
<FlatButton
label={<Trans>Load local lesson</Trans>}
onClick={onLoadInAppTutorialFromLocalFile}
/>
)}
</Line>
<GuidedLessons selectInAppTutorial={selectInAppTutorial} />
</SectionRow>
<LargeSpacer />
<SectionRow>
<ColumnStackLayout noMargin expand>
<Line noMargin>
@@ -284,6 +269,20 @@ const MainPage = ({
</Line>
</ColumnStackLayout>
</SectionRow>
<SectionRow>
<Line justifyContent="space-between" noMargin>
<Text noMargin size="title">
<Trans>Guided lessons</Trans>
</Text>
{showInAppTutorialDeveloperMode && (
<FlatButton
label={<Trans>Load local lesson</Trans>}
onClick={onLoadInAppTutorialFromLocalFile}
/>
)}
</Line>
<GuidedLessons selectInAppTutorial={selectInAppTutorial} />
</SectionRow>
<>
<SectionRow>
<Line noMargin>