@@ -4,20 +4,19 @@ import * as G from 'typings/graphql'
44import { Badge } from '@alifd/next'
55import { css , jsx } from '@emotion/core'
66import Button from '../../components/Button'
7- import Card from '../../components/Card'
87
98const styles = {
109 page : {
1110 position : 'relative' as 'relative' ,
12- display : 'flex' ,
13- flexDirection : 'column' ,
11+ display : 'flex' as 'flex' ,
12+ flexDirection : 'column' as 'column' ,
1413 width : '100%' ,
1514 height : window . innerHeight ,
1615 } ,
1716 header : {
1817 flex : 1 ,
1918 display : 'flex' as 'flex' ,
20- flexDirection : 'column' ,
19+ flexDirection : 'column' as 'column' ,
2120 justifyContent : 'flex-end' as 'flex-end' ,
2221 alignItems : 'center' as 'center' ,
2322 backgroundColor : '#EBEBEB' ,
@@ -54,7 +53,7 @@ interface Props {
5453 tutorial ?: G . Tutorial
5554}
5655
57- export const LaunchPage = ( props : Props ) => (
56+ export const StartPage = ( props : Props ) => (
5857 < div css = { styles . page } >
5958 < div css = { styles . header } >
6059 < Badge content = "beta" style = { styles . betaBadge } >
@@ -85,11 +84,11 @@ interface ContainerProps {
8584 send ( action : CR . Action | string ) : void
8685}
8786
88- const LaunchPageContainer = ( { context, send } : ContainerProps ) => {
89- const { tutorial } = context
87+ const StartPageContainer = ( { context, send } : ContainerProps ) => {
88+ const tutorial = context . tutorial || undefined
9089 return (
91- < LaunchPage onContinue = { ( ) => send ( 'TUTORIAL_START' ) } onNew = { ( ) => send ( 'TUTORIAL_SELECT' ) } tutorial = { tutorial } />
90+ < StartPage onContinue = { ( ) => send ( 'TUTORIAL_START' ) } onNew = { ( ) => send ( 'TUTORIAL_SELECT' ) } tutorial = { tutorial } />
9291 )
9392}
9493
95- export default LaunchPageContainer
94+ export default StartPageContainer
0 commit comments