From f83e80ec9dde7869d863b32045ee39f40845b648 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 9 Jan 2024 23:06:44 -0600 Subject: [PATCH] WIP todo assignment --- components/Avatar.tsx | 12 ++++ components/Label.tsx | 2 +- components/SectionHead.tsx | 20 ++++++ components/Select.tsx | 26 +++++++ components/Table.tsx | 14 ++++ components/TodoList.tsx | 61 ---------------- fresh.gen.ts | 2 + islands/Admin.tsx | 39 +++++------ islands/TodoList.tsx | 139 +++++++++++++++++++++++++++++++++++++ routes/api/user.ts | 1 + routes/index.tsx | 15 ++-- 11 files changed, 244 insertions(+), 87 deletions(-) create mode 100644 components/Avatar.tsx create mode 100644 components/SectionHead.tsx create mode 100644 components/Select.tsx create mode 100644 components/Table.tsx delete mode 100644 components/TodoList.tsx create mode 100644 islands/TodoList.tsx diff --git a/components/Avatar.tsx b/components/Avatar.tsx new file mode 100644 index 0000000..6257a84 --- /dev/null +++ b/components/Avatar.tsx @@ -0,0 +1,12 @@ +import { JSX } from 'preact' + +export function Avatar( + { className, ...props }: JSX.HTMLAttributes, +) { + return ( + + ) +} diff --git a/components/Label.tsx b/components/Label.tsx index b1b44c4..e65de42 100644 --- a/components/Label.tsx +++ b/components/Label.tsx @@ -4,7 +4,7 @@ export function Label( { children, className, ...props }: JSX.HTMLAttributes, ) { return ( -