Skip to content

Commit 34da9d2

Browse files
committed
feat(desktop): update share icon, close #762
1 parent 667664a commit 34da9d2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

apps/desktop/src/renderer/src/modules/command/commands/entry.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FeedViewType, UserRole } from "@follow/constants"
22
import { IN_ELECTRON } from "@follow/shared/constants"
3-
import { cn, getOS } from "@follow/utils/utils"
3+
import { cn } from "@follow/utils/utils"
44
import { useMutation } from "@tanstack/react-query"
55
import { useTranslation } from "react-i18next"
66
import { toast } from "sonner"
@@ -265,12 +265,7 @@ export const useRegisterEntryCommands = () => {
265265
{
266266
id: COMMAND_ID.entry.share,
267267
label: t("entry_actions.share"),
268-
icon:
269-
getOS() === "macOS" ? (
270-
<i className="i-mgc-share-3-cute-re" />
271-
) : (
272-
<i className="i-mgc-share-forward-cute-re" />
273-
),
268+
icon: <i className="i-mgc-share-forward-cute-re" />,
274269
run: ({ entryId }) => {
275270
const entry = useEntryStore.getState().flatMapEntries[entryId]
276271
if (!entry || !entry.entries.url) {

apps/desktop/src/renderer/src/modules/profile/user-profile-modal.electron.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const UserProfileModalContent: FC<SubscriptionModalContentProps> = ({ use
220220
window.open(UrlBuilder.profile(user.data.handle ?? user.data.id))
221221
}}
222222
>
223-
<i className="i-mgc-share-3-cute-re" />
223+
<i className="i-mgc-share-forward-cute-re" />
224224
</ActionButton>
225225
<ActionButton tooltip={t("user_profile.close")} onClick={modal.dismiss}>
226226
<i className="i-mgc-close-cute-re" />

0 commit comments

Comments
 (0)