Skip to content

Feature/new continue #5

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

Merged
merged 10 commits into from
Jun 10, 2019
Merged
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
Next Next commit
Add basic new page with list
  • Loading branch information
ShMcK committed Jun 9, 2019
commit 4eee6295addee2094212226562cc352e1954210f
9 changes: 8 additions & 1 deletion web-app/src/containers/New/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ interface Props {
}

const NewPage = (props: Props) => {
const [tutorialList, setTutorialList] = React.useState([{ id: '1', title: 'Demo', description: 'A basic demo' }])
// context
return (
<div>
<h2>Start a new Project</h2>
<Button onClick={() => props.onNew('1')}>New</Button>
{tutorialList.map(tutorial => (
<div>
<h3>{tutorial.title}</h3>
<p>{tutorial.description}</p>
<Button onClick={() => props.onNew(tutorial.id)}>Start</Button>
</div>
))}
</div>
)
}
Expand Down