We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdebb808 commit58453b8Copy full SHA for 58453b8
web-app/src/components/Button/index.tsx
@@ -0,0 +1,16 @@
1
+import*asReactfrom'react'
2
+import{ButtonasAlifdButton}from'@alifd/next'
3
+
4
+interfaceProps{
5
+children:string
6
+type?:'primary'|'secondary'|'normal'
7
+onClick():void
8
+}
9
10
+constButton=(props:Props)=>(
11
+<AlifdButtononClick={props.onClick}type={props.type}>
12
+{props.children}
13
+</AlifdButton>
14
+)
15
16
+exportdefaultButton
web-app/src/components/Card/index.tsx
+import{CardasAlifdCard}from'@alifd/next'
+children:React.ReactNode
+onClick?:()=>void
+style?:React.CSSProperties
+constCard=(props:Props)=>(
+<AlifdCardshowTitleBullet={false}contentHeight="auto"onClick={props.onClick}style={props.style}>
+</AlifdCard>
+exportdefaultCard
web-app/src/containers/Continue/index.tsx
@@ -1,5 +1,6 @@
import*asReactfrom'react'
-import{Button,Card}from'@alifd/next'
+importButtonfrom'../../components/Button'
+importCardfrom'../../components/Card'
import*asCRfrom'typings'
import*asGfrom'typings/graphql'
@@ -12,14 +13,14 @@ interface Props {
exportconstContinuePage=(props:Props)=>(
<div>
<h3>Continue</h3>
-<CardshowTitleBullet={false}contentHeight="auto">
+<Card>
17
18
<h2>{props.tutorial.version.summary.title}</h2>
19
<p>{props.tutorial.version.summary.description}</p>
20
<ButtononClick={props.onContinue}>Resume</Button>
21
</div>
22
</Card>
23
24
25
<h2>Start a New Tutorial</h2>
26
<ButtononClick={props.onNew}>Select New Tutorial</Button>
web-app/src/containers/New/TutorialItem.tsx
interfaceProps{
title:string
@@ -9,7 +10,7 @@ interface Props {
constTutorialItem=(props:Props)=>{
return(
<h2>{props.title}</h2>
<p>{props.description}</p>
web-app/src/containers/New/TutorialList/TutorialItem.tsx
@@ -1,5 +1,5 @@
-import{Card}from'@alifd/next'
+importCardfrom'../../../components/Card'
conststyles={
card:{
web-app/src/containers/New/TutorialList/index.tsx
@@ -1,8 +1,8 @@
-
-importchannelfrom'../../../services/channel'
importTutorialItemfrom'./TutorialItem'
+importchannelfrom'../../../services/channel'
tutorialList:G.Tutorial[]
web-app/src/containers/Overview/OverviewPage.tsx
-import{Button}from'@alifd/next'
importMarkdownfrom'../../components/Markdown'
web-app/src/containers/Tutorial/CompletedPage.tsx
@@ -9,22 +9,22 @@ const styles = {
}
-context:CR.MachineContext
-send(action:CR.Action|string):void
+context:CR.MachineContext
+send(action:CR.Action|string):void
constCompletedPage=(props:Props)=>{
-constselectNewTutorial=()=>{
-props.send('SELECT_TUTORIAL')
-}
+constselectNewTutorial=()=>{
+props.send('SELECT_TUTORIAL')
-<div>
-<h3>Tutorial Complete</h3>
-<divstyle={styles.options}>
-<ButtononClick={selectNewTutorial}>Continue</Button>
-</div>
27
-)
+<div>
+<h3>Tutorial Complete</h3>
+<divstyle={styles.options}>
+<ButtononClick={selectNewTutorial}>Continue</Button>
+</div>
28
29
30
exportdefaultCompletedPage
web-app/src/containers/Tutorial/LevelPage/Level/Step/index.tsx
@@ -1,6 +1,6 @@
import*asTfrom'typings'
+importButtonfrom'../../../../../components/Button'
importCheckboxfrom'../../../../../components/Checkbox'
importMarkdownfrom'../../../../../components/Markdown'
web-app/src/containers/Tutorial/LevelPage/Level/index.tsx
@@ -1,9 +1,9 @@
importStepfrom'./Step'
+importButtonfrom'../../../../components/Button'
importMarkdownfrom'../../../../components/Markdown'