{tags.length > 0 ? (
@@ -69,8 +69,8 @@ const TagSelector = observer((props: Props) => {
)}
-
-
+
+
);
});
diff --git a/web/src/components/ReactionSelector.tsx b/web/src/components/ReactionSelector.tsx
index 4ab203df..2c226f13 100644
--- a/web/src/components/ReactionSelector.tsx
+++ b/web/src/components/ReactionSelector.tsx
@@ -1,4 +1,3 @@
-import { Dropdown, Menu, MenuButton } from "@mui/joy";
import { SmilePlusIcon } from "lucide-react";
import { observer } from "mobx-react-lite";
import { useRef, useState } from "react";
@@ -8,6 +7,7 @@ import useCurrentUser from "@/hooks/useCurrentUser";
import { memoStore, workspaceStore } from "@/store/v2";
import { Memo } from "@/types/proto/api/v1/memo_service";
import { cn } from "@/utils";
+import { Popover, PopoverContent, PopoverTrigger } from "./ui/Popover";
interface Props {
memo: Memo;
@@ -55,18 +55,18 @@ const ReactionSelector = observer((props: Props) => {
};
return (
-
setOpen(isOpen)}>
-
+
+
-
-
-
+
+
);
});
diff --git a/web/src/components/Settings/MemberSection.tsx b/web/src/components/Settings/MemberSection.tsx
index c65d8ea4..8482f0dc 100644
--- a/web/src/components/Settings/MemberSection.tsx
+++ b/web/src/components/Settings/MemberSection.tsx
@@ -1,4 +1,4 @@
-import { Dropdown, Menu, MenuButton, MenuItem, Radio, RadioGroup } from "@mui/joy";
+import { Radio, RadioGroup } from "@mui/joy";
import { Button, Input } from "@usememos/mui";
import { sortBy } from "lodash-es";
import { MoreVerticalIcon } from "lucide-react";
@@ -12,6 +12,7 @@ import { State } from "@/types/proto/api/v1/common";
import { User, User_Role } from "@/types/proto/api/v1/user_service";
import { useTranslate } from "@/utils/i18n";
import showCreateUserDialog from "../CreateUserDialog";
+import { Popover, PopoverContent, PopoverTrigger } from "../ui/Popover";
interface LocalState {
creatingUser: User;
@@ -214,22 +215,46 @@ const MemberSection = observer(() => {
{currentUser?.name === user.name ? (
{t("common.yourself")}
) : (
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {user.state === State.NORMAL ? (
+
+ ) : (
+ <>
+
+
+ >
+ )}
+
+
+
)}
diff --git a/web/src/components/Settings/MyAccountSection.tsx b/web/src/components/Settings/MyAccountSection.tsx
index 182aa50d..2d2189a4 100644
--- a/web/src/components/Settings/MyAccountSection.tsx
+++ b/web/src/components/Settings/MyAccountSection.tsx
@@ -1,4 +1,3 @@
-import { Dropdown, Menu, MenuButton, MenuItem } from "@mui/joy";
import { Button } from "@usememos/mui";
import { MoreVerticalIcon, PenLineIcon } from "lucide-react";
import useCurrentUser from "@/hooks/useCurrentUser";
@@ -6,6 +5,7 @@ import { useTranslate } from "@/utils/i18n";
import showChangeMemberPasswordDialog from "../ChangeMemberPasswordDialog";
import showUpdateAccountDialog from "../UpdateAccountDialog";
import UserAvatar from "../UserAvatar";
+import { Popover, PopoverContent, PopoverTrigger } from "../ui/Popover";
import AccessTokenSection from "./AccessTokenSection";
const MyAccountSection = () => {
@@ -30,16 +30,21 @@ const MyAccountSection = () => {
{t("common.edit")}
-
-
+
+
-
-
-
+
+
+
+
+