diff --git a/assets/jsons/translations/en.json b/assets/jsons/translations/en.json index fa86f981..0987426f 100644 --- a/assets/jsons/translations/en.json +++ b/assets/jsons/translations/en.json @@ -134,6 +134,9 @@ "supporters": "Supporters" } }, + "discord": { + "description": "Join the BSManager community by joining our Discord!" + }, "contribution": { "description": "Suggest new features or report a bug to help improve BSManager!", "buttons": { diff --git a/assets/jsons/translations/es.json b/assets/jsons/translations/es.json index 579b8f1f..dc6ab660 100644 --- a/assets/jsons/translations/es.json +++ b/assets/jsons/translations/es.json @@ -134,6 +134,9 @@ "supporters": "Apoyos" } }, + "discord": { + "description": "¡Únete a la comunidad de BSManager uniéndote a nuestro Discord!" + }, "contribution": { "description": "¡Sugiera nuevas características o reporte un error para ayudar a mejorar BSManager!", "buttons": { diff --git a/assets/jsons/translations/fr.json b/assets/jsons/translations/fr.json index 74cd70dc..d6365a2b 100644 --- a/assets/jsons/translations/fr.json +++ b/assets/jsons/translations/fr.json @@ -134,6 +134,9 @@ "supporters": "Supporteurs" } }, + "discord":{ + "description": "Prends part à la communauté de BSManager en rejoignant notre Discord !" + }, "contribution": { "description": "Propose de nouvelles fonctionnalités ou signale un bug pour contribuer à l'amélioration de BSManager !", "buttons": { diff --git a/src/renderer/components/svgs/bsm-icon.component.tsx b/src/renderer/components/svgs/bsm-icon.component.tsx index 4b92f7cb..3b2624e2 100644 --- a/src/renderer/components/svgs/bsm-icon.component.tsx +++ b/src/renderer/components/svgs/bsm-icon.component.tsx @@ -43,9 +43,10 @@ import { LinkIcon } from "./icons/link-icon.component"; import { UnlinkIcon } from "./icons/unlink-icon.component"; import { DownloadIcon } from "./icons/download-icon.component"; import { FilterIcon } from "./icons/filter-icon.component"; +import DiscordIcon from "./icons/discord-icon.component"; export type BsmIconType = BsvMapCharacteristic | ( - "settings"|"trash"|"favorite"|"folder"|"bsNote"|"check"|"three-dots"|"twitch"|"eye"|"play"|"checkCircleIcon"| + "settings"|"trash"|"favorite"|"folder"|"bsNote"|"check"|"three-dots"|"twitch"|"eye"|"play"|"checkCircleIcon"|"discord"| "terminal"|"desktop"|"oculus"|"add"|"cross"|"task"|"github"|"close"|"thumbUpFill"|"timerFill"|"pause"| "copy"|"steam"|"edit"|"export"|"patreon"|"search"|"bsMapDifficulty"|"link"|"unlink"|"download"|"filter"| "fr-FR-flag"|"es-ES-flag"|"en-US-flag"|"en-EN-flag" @@ -97,6 +98,7 @@ export const BsmIcon = memo(({className, icon, style}: {className?: string, icon if(icon === "unlink"){ return } if(icon === "download"){ return } if(icon === "filter"){ return } + if(icon === "discord"){ return } return } diff --git a/src/renderer/components/svgs/icons/discord-icon.component.tsx b/src/renderer/components/svgs/icons/discord-icon.component.tsx new file mode 100644 index 00000000..9a4d0d19 --- /dev/null +++ b/src/renderer/components/svgs/icons/discord-icon.component.tsx @@ -0,0 +1,15 @@ +import { CSSProperties } from "react"; + +export default function DiscordIcon(props: {className?: string, style?: CSSProperties}) { + return ( + + + + + + + + + + ) +} diff --git a/src/renderer/pages/settings-page.component.tsx b/src/renderer/pages/settings-page.component.tsx index a8d002f1..39b5bb38 100644 --- a/src/renderer/pages/settings-page.component.tsx +++ b/src/renderer/pages/settings-page.component.tsx @@ -147,6 +147,7 @@ export function SettingsPage() { const openGithub = () => linkOpener.open("https://github.com/Zagrios/bs-manager"); const openReportBug = () => linkOpener.open("https://github.com/Zagrios/bs-manager/issues/new?assignees=Zagrios&labels=bug&template=-bug--bug-report.md&title=%5BBUG%5D+%3A+"); const openRequestFeatures = () => linkOpener.open("https://github.com/Zagrios/bs-manager/issues/new?assignees=Zagrios&labels=enhancement&template=-feat---feature-request.md&title=%5BFEAT.%5D+%3A+"); + const openDiscord = () => linkOpener.open("https://discord.gg/uSqbHVpKdV"); const openLogs = () => ipcService.sendLazy("open-logs"); @@ -283,6 +284,9 @@ export function SettingsPage() { + + +