Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80a5edb

Browse files
committed
fix up overview page
1 parent46d020e commit80a5edb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎web-app/src/containers/Overview/OverviewPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const styles = {
3131
bottom:0,
3232
height:'50px',
3333
padding:'1rem',
34+
paddingRight:'2rem',
3435
backgroundColor:'black',
3536
width:'100%',
3637
},

‎web-app/src/containers/Overview/index.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as CR from 'typings'
44
import{useQuery}from'@apollo/react-hooks'
55

66
importqueryTutorialfrom'../../services/apollo/queries/tutorial'
7-
importSummaryfrom'./Summary'
7+
importOverviewPagefrom'./OverviewPage'
88
importErrorViewfrom'../../components/Error'
99

1010
interfacePageProps{
@@ -21,14 +21,14 @@ interface TutorialDataVariables {
2121
version:string
2222
}
2323

24-
constSummaryPage=(props:PageProps)=>{
24+
constOverview=(props:PageProps)=>{
2525
const{ tutorial}=props.context
2626

2727
if(!tutorial){
2828
thrownewError('Tutorial not found in summary page')
2929
}
3030
const{ loading, error, data}=useQuery<TutorialData,TutorialDataVariables>(queryTutorial,{
31-
fetchPolicy:'network-only',//for debugging purposes
31+
fetchPolicy:'network-only',//to ensure latest
3232
variables:{
3333
tutorialId:tutorial.id,
3434
version:tutorial.version.version,
@@ -56,8 +56,9 @@ const SummaryPage = (props: PageProps) => {
5656
})
5757

5858
const{ title, description}=data.tutorial.version.summary
59+
const{ levels}=data.tutorial.version.data
5960

60-
return<Summarytitle={title}description={description}onNext={onNext}/>
61+
return<OverviewPagetitle={title}description={description}levels={levels}onNext={onNext}/>
6162
}
6263

63-
exportdefaultSummaryPage
64+
exportdefaultOverview

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp