added note modal (wip)

This commit is contained in:
Ren Amamiya
2023-02-23 14:05:34 +07:00
parent ca5e299791
commit 1796228116
5 changed files with 185 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ import Database from 'tauri-plugin-sql-api';
const db = typeof window !== 'undefined' ? await Database.load('sqlite:lume.db') : null;
export const User = memo(function User({ pubkey, time }: { pubkey: string; time: any }) {
const [profile, setProfile] = useState({ picture: null, name: null });
const [profile, setProfile] = useState({ picture: null, name: null, username: null });
const { onEvent } = useNostrEvents({
filter: {