feat(column): add thread and user columns

This commit is contained in:
2023-12-28 11:31:47 +07:00
parent 893f3f7181
commit 4fc3cc8a80
21 changed files with 921 additions and 22 deletions

View File

@@ -9,7 +9,9 @@
},
"dependencies": {
"@columns/notification": "workspace:^",
"@columns/thread": "workspace:^",
"@columns/timeline": "workspace:^",
"@columns/user": "workspace:^",
"@getalby/sdk": "^3.2.1",
"@lume/ark": "workspace:^",
"@lume/icons": "workspace:^",

View File

@@ -1,5 +1,6 @@
import { NotificationColumn } from "@columns/notification";
import { Thread } from "@columns/thread";
import { Timeline } from "@columns/timeline";
import { User } from "@columns/user";
import { useStorage } from "@lume/ark";
import { LoaderIcon } from "@lume/icons";
import { WidgetProps } from "@lume/types";
@@ -39,6 +40,10 @@ export function HomeScreen() {
switch (widget.kind) {
case WIDGET_KIND.newsfeed:
return <Timeline key={widget.id} />;
case WIDGET_KIND.thread:
return <Thread key={widget.id} thread={widget} />;
case WIDGET_KIND.user:
return <User key={widget.id} user={widget} />;
default:
return <Timeline key={widget.id} />;
}