From 34da9d24c720a2dd50558aae905f61e565ea234a Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 16 Apr 2025 20:39:53 +0800 Subject: [PATCH] feat(desktop): update share icon, close #762 --- .../src/renderer/src/modules/command/commands/entry.tsx | 9 ++------- .../src/modules/profile/user-profile-modal.electron.tsx | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/desktop/src/renderer/src/modules/command/commands/entry.tsx b/apps/desktop/src/renderer/src/modules/command/commands/entry.tsx index 3852f2243..948874473 100644 --- a/apps/desktop/src/renderer/src/modules/command/commands/entry.tsx +++ b/apps/desktop/src/renderer/src/modules/command/commands/entry.tsx @@ -1,6 +1,6 @@ import { FeedViewType, UserRole } from "@follow/constants" import { IN_ELECTRON } from "@follow/shared/constants" -import { cn, getOS } from "@follow/utils/utils" +import { cn } from "@follow/utils/utils" import { useMutation } from "@tanstack/react-query" import { useTranslation } from "react-i18next" import { toast } from "sonner" @@ -265,12 +265,7 @@ export const useRegisterEntryCommands = () => { { id: COMMAND_ID.entry.share, label: t("entry_actions.share"), - icon: - getOS() === "macOS" ? ( - - ) : ( - - ), + icon: , run: ({ entryId }) => { const entry = useEntryStore.getState().flatMapEntries[entryId] if (!entry || !entry.entries.url) { diff --git a/apps/desktop/src/renderer/src/modules/profile/user-profile-modal.electron.tsx b/apps/desktop/src/renderer/src/modules/profile/user-profile-modal.electron.tsx index b27c366bd..0bb3bd9f4 100644 --- a/apps/desktop/src/renderer/src/modules/profile/user-profile-modal.electron.tsx +++ b/apps/desktop/src/renderer/src/modules/profile/user-profile-modal.electron.tsx @@ -220,7 +220,7 @@ export const UserProfileModalContent: FC = ({ use window.open(UrlBuilder.profile(user.data.handle ?? user.data.id)) }} > - +