diff --git a/apps/desktop/src/routes/settings/backup.tsx b/apps/desktop/src/routes/settings/backup.tsx index 67ba9763..129d46bc 100644 --- a/apps/desktop/src/routes/settings/backup.tsx +++ b/apps/desktop/src/routes/settings/backup.tsx @@ -48,7 +48,7 @@ export function BackupSettingScreen() { diff --git a/apps/desktop/src/routes/settings/profile.tsx b/apps/desktop/src/routes/settings/profile.tsx index 82b31d10..00b224c1 100644 --- a/apps/desktop/src/routes/settings/profile.tsx +++ b/apps/desktop/src/routes/settings/profile.tsx @@ -10,6 +10,7 @@ import { NDKKind, NDKUserProfile } from "@nostr-dev-kit/ndk"; import { useQueryClient } from "@tanstack/react-query"; import { useState } from "react"; import { useForm } from "react-hook-form"; +import { toast } from "sonner"; import { AvatarUpload } from "./components/avatarUpload"; import { CoverUpload } from "./components/coverUpload"; @@ -92,6 +93,9 @@ export function ProfileSettingScreen() { return content; }); + // notify + toast.success("You've updated profile successfully."); + // reset state setPicture(null); setBanner(null); @@ -112,7 +116,7 @@ export function ProfileSettingScreen() { className="h-full w-full rounded-t-xl object-cover" /> ) : ( -
+
)}
@@ -236,7 +240,7 @@ export function ProfileSettingScreen() { - + @@ -100,9 +102,24 @@ export function NoteMenu() { to={`/users/${event.pubkey}`} className="inline-flex items-center gap-3 px-3 text-sm font-medium rounded-lg h-9 text-black/70 hover:bg-black/10 hover:text-black focus:outline-none dark:text-white/70 dark:hover:bg-white/10 dark:hover:text-white" > - View profile + View author + + +