add edit profile

This commit is contained in:
Ren Amamiya
2023-06-29 10:37:35 +07:00
parent ec1ff9ab87
commit 1ba7f823cb
20 changed files with 965 additions and 184 deletions

View File

@@ -8,6 +8,7 @@ import { useProfile } from "@utils/hooks/useProfile";
import { sendNativeNotification } from "@utils/notification";
import { produce } from "immer";
import { useContext, useEffect } from "react";
import { Link } from "react-router-dom";
const lastLogin = await getLastLogin();
@@ -92,7 +93,10 @@ export function ActiveAccount({ data }: { data: any }) {
}
return (
<div className="relative inline-block h-9 w-9">
<Link
to={`/app/user/${data.pubkey}`}
className="relative inline-block h-9 w-9"
>
<Image
src={user.image}
fallback={DEFAULT_AVATAR}
@@ -100,6 +104,6 @@ export function ActiveAccount({ data }: { data: any }) {
className="h-9 w-9 rounded-md object-cover"
/>
<NetworkStatusIndicator />
</div>
</Link>
);
}