first commit
This commit is contained in:
11
src/components/listProjects.ts
Normal file
11
src/components/listProjects.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Button, Flex } from "wretched";
|
||||
import { getAllProjects } from "../services/api-client.js";
|
||||
|
||||
const projects = await getAllProjects({ limit: 100 });
|
||||
|
||||
export const projectView = Flex.down({
|
||||
children: projects.map(x => new Button({
|
||||
text: x.name
|
||||
})
|
||||
)
|
||||
});
|
||||
Reference in New Issue
Block a user