implement creating and listing tasks
This commit is contained in:
@@ -23,7 +23,7 @@ export function BoardEntry(boardViewModel: BoardViewModel) {
|
||||
return view;
|
||||
}
|
||||
|
||||
export const BoardInfoToEntry: React.StateItemConverter<
|
||||
export const BoardViewModelToEntry: React.StateItemConverter<
|
||||
BoardViewModel
|
||||
> = (boardViewModel: BoardViewModel) => {
|
||||
return BoardEntry(boardViewModel);
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import * as React from "bloatless-react";
|
||||
|
||||
import TaskViewModel from "../../ViewModel/Pages/taskViewModel";
|
||||
|
||||
export function TaskEntry(taskViewModel: TaskViewModel) {
|
||||
const view = (
|
||||
<button class="tile">
|
||||
<b subscribe:innerText={taskViewModel.name}></b>
|
||||
</button>
|
||||
);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
export const TaskViewModelToEntry: React.StateItemConverter<TaskViewModel> = (
|
||||
taskViewModel: TaskViewModel
|
||||
) => {
|
||||
return TaskEntry(taskViewModel);
|
||||
};
|
||||
Reference in New Issue
Block a user