Skip to content

Commit

Permalink
feat: remove export opml and import opml button
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 30, 2024
1 parent 4d731e5 commit b9b6727
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion icons/mgc/file_export_cute_re.svg

This file was deleted.

20 changes: 1 addition & 19 deletions src/renderer/src/components/user-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useSettingModal } from "@renderer/modules/settings/modal/hooks"
import { useSession } from "@renderer/queries/auth"
import type { FC } from "react"
import { memo } from "react"
import { Link, useNavigate } from "react-router-dom"
import { Link } from "react-router-dom"

import { UserArrowLeftIcon } from "./icons/user"
import { ActionButton } from "./ui/button"
Expand Down Expand Up @@ -70,7 +70,6 @@ export const ProfileButton: FC<LoginProps> = memo((props) => {
const signOut = useSignOut()
const settingModalPresent = useSettingModal()
const presentUserProfile = usePresentUserProfileModal()
const navigate = useNavigate()
if (status !== "authenticated") {
return <LoginButton {...props} />
}
Expand Down Expand Up @@ -131,23 +130,6 @@ export const ProfileButton: FC<LoginProps> = memo((props) => {
</div> */}
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem onClick={() => {
navigate("/discover?type=import")
}}
>
<i className="i-mgc-file-import-cute-re mr-1.5" />
Import from OPML
</DropdownMenuItem>

<DropdownMenuItem
onClick={() => {
window.open(apiClient.subscriptions.export.$url())
}}
>
<i className="i-mgc-file-export-cute-re mr-1.5" />
Export to OPML
</DropdownMenuItem>
<DropdownMenuSeparator />
{!window.electron && (
<>
<DropdownMenuItem
Expand Down

0 comments on commit b9b6727

Please sign in to comment.