feat(desktop): update share icon, close #762
This commit is contained in:
parent
667664aa67
commit
34da9d24c7
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue