Skip to content
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