improve notification and performance

This commit is contained in:
2023-11-30 16:02:28 +07:00
parent 6f68c2762b
commit 80f675cb54
11 changed files with 356 additions and 291 deletions

View File

@@ -35,18 +35,18 @@ export function HomeScreen() {
queryFn: async () => {
const dbWidgets = await db.getWidgets();
const defaultWidgets = [
{
id: '9998',
title: 'Notification',
content: '',
kind: WIDGET_KIND.notification,
},
{
id: '9999',
title: 'Newsfeed',
content: '',
kind: WIDGET_KIND.newsfeed,
},
{
id: '9998',
title: 'Notification',
content: '',
kind: WIDGET_KIND.notification,
},
];
return [...defaultWidgets, ...dbWidgets];