Added css to todo tasks
This commit is contained in:
parent
b53b8758ba
commit
7d3769cf4f
4 changed files with 44 additions and 4 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import * as React from "react";
|
||||
import { getTasks } from "./habiticaAPI"
|
||||
import TodoItem from "./TodoItem"
|
||||
|
||||
const username = "<key>"
|
||||
const credentials = "<key>"
|
||||
|
||||
const username = "5b70c4ea-ed91-4fc4-8231-edd1984ec02c"
|
||||
const credentials = "ccbeec3b-fe55-4952-a2fa-023d0fbbab85"
|
||||
|
||||
class App extends React.Component<any,any> {
|
||||
constructor(props: any) {
|
||||
|
|
@ -40,7 +42,8 @@ class App extends React.Component<any,any> {
|
|||
return <div>Loading...</div>;
|
||||
} else {
|
||||
const listItems = tasks.map((tasks: any) =>
|
||||
<li>{tasks.text}</li>
|
||||
<TodoItem key={tasks.id} task={tasks}/>
|
||||
|
||||
);
|
||||
return (
|
||||
<ul>{listItems}</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue