This commit is contained in:
2023-06-09 09:36:35 +08:00
parent 7b5ba18d89
commit 0ce09477a5
2 changed files with 82 additions and 25 deletions

17
components/Task.tsx Normal file
View File

@@ -0,0 +1,17 @@
import { Component } from "preact";
import { TaskDetail, TaskStatus } from "../task.ts";
type Props = {
task: TaskDetail;
};
export default class Task extends Component<Props> {
render() {
const task = this.props.task;
return (
<div data-id={task.base.id}>
Task Id: {task.base.id}
</div>
);
}
}