diff --git a/src/renderer/components/modal/modal-types/chabgelog-modal/changelog-modal.component.tsx b/src/renderer/components/modal/modal-types/chabgelog-modal/changelog-modal.component.tsx index ae61a4f9..d4e56966 100644 --- a/src/renderer/components/modal/modal-types/chabgelog-modal/changelog-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/chabgelog-modal/changelog-modal.component.tsx @@ -9,12 +9,12 @@ import Tippy from "@tippyjs/react"; export const ChangelogModal: ModalComponent = ({ options: {data: changelog} }) => { - console.log(changelog); const linkOpener = useService(LinkOpenerService); const openGithub = () => linkOpener.open("https://github.com/Zagrios/bs-manager"); const openTwitter = () => linkOpener.open("https://twitter.com/BSManager_"); const openSupportPage = () => linkOpener.open("https://www.patreon.com/bsmanager"); const openDiscord = () => linkOpener.open("https://discord.gg/uSqbHVpKdV"); + const openWebSite = () => linkOpener.open("https://bsmanager.io/"); const date = changelog?.timestamp ? new Date(changelog.timestamp * 1000).toLocaleDateString() : ''; return ( @@ -40,6 +40,9 @@ export const ChangelogModal: ModalComponent = ({ options
+ +
+
diff --git a/src/renderer/components/svgs/bsm-icon.component.tsx b/src/renderer/components/svgs/bsm-icon.component.tsx index fa5056a3..fad7b614 100644 --- a/src/renderer/components/svgs/bsm-icon.component.tsx +++ b/src/renderer/components/svgs/bsm-icon.component.tsx @@ -50,6 +50,7 @@ import { SyncIcon } from "./icons/sync-icon.component"; import { VolumeUpIcon } from "./icons/volume-up-icon.component"; import { VolumeOffIcon } from "./icons/volume-off-icon.component"; import { VolumeDownIcon } from "./icons/volume-down-icon.component"; +import { WebSiteIcon } from "./icons/web-site-icon.component"; import { GermanIcon } from "./flags/german-icon.component"; import { RussianIcon } from "./flags/russian-icon.component"; import { ChineseIcon } from "./flags/chinese-icon.component"; @@ -61,7 +62,8 @@ import { ShortcutIcon } from "./icons/shortcut-icon.component"; import { BackupRestoreIcon } from "./icons/backup-restore-icon.component"; import { SongDetailDiffCharactertistic } from "shared/models/maps/song-details-cache/song-details-cache.model"; -export type BsmIconType = SongDetailDiffCharactertistic | ("settings" | "trash" | "favorite" | "folder" | "bsNote" | "check" | "three-dots" | "twitch" | "eye" | "play" | "checkCircleIcon" | "discord" | "info" | "eye-cross" | "terminal" | "desktop" | "oculus" | "add" | "cross" | "task" | "github" | "close" | "thumbUpFill" | "timerFill" | "pause" | "twitter" | "sync" | "chevron-top" | "copy" | "steam" | "edit" | "export" | "patreon" | "search" | "bsMapDifficulty" | "link" | "unlink" | "download" | "filter" | "mee6" | "volume-up" | "volume-off" | "volume-down" | "shortcut" | "backup-restore" | "fr-FR-flag" | "es-ES-flag" | "en-US-flag" | "en-EN-flag" | "de-DE-flag" | "ru-RU-flag" | "zh-CN-flag" | "zh-TW-flag" | "ja-JP-flag"); + +export type BsmIconType = SongDetailDiffCharactertistic | ("settings" | "trash" | "favorite" | "folder" | "bsNote" | "check" | "three-dots" | "twitch" | "eye" | "play" | "checkCircleIcon" | "discord" | "info" | "eye-cross" | "terminal" | "desktop" | "oculus" | "add" | "cross" | "task" | "github" | "close" | "thumbUpFill" | "timerFill" | "pause" | "twitter" | "sync" | "chevron-top" | "copy" | "steam" | "edit" | "export" | "patreon" | "search" | "bsMapDifficulty" | "link" | "unlink" | "download" | "filter" | "mee6" | "volume-up" | "volume-off" | "volume-down" | "shortcut" | "backup-restore" | "web-site" | "fr-FR-flag" | "es-ES-flag" | "en-US-flag" | "en-EN-flag" | "de-DE-flag" | "ru-RU-flag" | "zh-CN-flag" | "zh-TW-flag" | "ja-JP-flag"); export const BsmIcon = memo(({ className, icon, style }: { className?: string; icon: BsmIconType; style?: CSSProperties }) => { // TODO : Very ugly very messy, need to find a better way to do this @@ -250,7 +252,13 @@ export const BsmIcon = memo(({ className, icon, style }: { className?: string; i if (icon === "backup-restore") { return ; } + + if(icon === "web-site") { + return ; + } return ; + + }; return <>{renderIcon()}; diff --git a/src/renderer/components/svgs/icons/web-site-icon.component.tsx b/src/renderer/components/svgs/icons/web-site-icon.component.tsx new file mode 100644 index 00000000..8f6e82e5 --- /dev/null +++ b/src/renderer/components/svgs/icons/web-site-icon.component.tsx @@ -0,0 +1,9 @@ +import { CSSProperties } from "react"; + +export function WebSiteIcon(props: { className?: string; style?: CSSProperties }) { + return ( + + + + ); +}