first working example
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { Button, Flex } from "wretched";
|
||||
import { getAllProjects } from "../services/api-client.js";
|
||||
|
||||
const projects = await getAllProjects({ limit: 100 });
|
||||
const projectsResp = await getAllProjects({ limit: 100, sort_by: "date_updated", sort_dir: "desc" });
|
||||
|
||||
export const projectView = Flex.down({
|
||||
children: projects.map(x => new Button({
|
||||
children: projectsResp.projects.map(x => new Button({
|
||||
text: x.name
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user