From 20a5e565b1d544b94d4a2d0d213867b7c05a4918 Mon Sep 17 00:00:00 2001 From: thislight Date: Sun, 3 Nov 2024 18:00:13 +0800 Subject: [PATCH] Profile: add items into menu --- src/profiles/Profile.tsx | 46 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/src/profiles/Profile.tsx b/src/profiles/Profile.tsx index 9015e8b..f92bf95 100644 --- a/src/profiles/Profile.tsx +++ b/src/profiles/Profile.tsx @@ -26,10 +26,14 @@ import { Close, Edit, ExpandMore, + Group, MoreVert, OpenInBrowser, + PersonOff, + PlaylistAdd, Send, Share, + Translate, Verified, } from "@suid/icons-material"; import { Title } from "../material/typography"; @@ -90,6 +94,10 @@ const Profile: Component = () => { console.error(err); }); + const isCurrentSessionProfile = () => { + return session().account?.inf?.url === profile()?.url; + }; + const [recentTootFilter, setRecentTootFilter] = createSignal({ pinned: true, boost: false, @@ -261,18 +269,48 @@ const Profile: Component = () => { document.getElementById(menuButId)!.getBoundingClientRect() } > + + + + + Subscribe... + + } + > + + + + + Edit... + + + - + - Edit... + Subscribers + + + + + + Blocklist + + + + + + Translate Name and Bio... - - Mention {profile()?.displayName || ""}... + Mention in...