feat(desktop): update share icon, close #762

This commit is contained in:
DIYgod 2025-04-16 20:39:53 +08:00
parent 667664aa67
commit 34da9d24c7
No known key found for this signature in database
2 changed files with 3 additions and 8 deletions

View File

@ -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" ? (
<i className="i-mgc-share-3-cute-re" />
) : (
<i className="i-mgc-share-forward-cute-re" />
),
icon: <i className="i-mgc-share-forward-cute-re" />,
run: ({ entryId }) => {
const entry = useEntryStore.getState().flatMapEntries[entryId]
if (!entry || !entry.entries.url) {

View File

@ -220,7 +220,7 @@ export const UserProfileModalContent: FC<SubscriptionModalContentProps> = ({ use
window.open(UrlBuilder.profile(user.data.handle ?? user.data.id))
}}
>
<i className="i-mgc-share-3-cute-re" />
<i className="i-mgc-share-forward-cute-re" />
</ActionButton>
<ActionButton tooltip={t("user_profile.close")} onClick={modal.dismiss}>
<i className="i-mgc-close-cute-re" />