diff --git a/src/renderer/components/modal/modal-types/edit-version-modal.component.tsx b/src/renderer/components/modal/modal-types/edit-version-modal.component.tsx index 41f68313..2e4de25e 100644 --- a/src/renderer/components/modal/modal-types/edit-version-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/edit-version-modal.component.tsx @@ -31,7 +31,7 @@ export function EditVersionModal({resolver, clone = false}: {resolver: (x: Modal return (
{e.preventDefault(); rename();}}>

{t(!clone ? "modals.edit-version.title" : "modals.clone-version.title")}

- + { clone && (

{t("modals.clone-version.description")}

)} diff --git a/src/renderer/components/modal/modal.component.tsx b/src/renderer/components/modal/modal.component.tsx index 60d8f80d..ce667e9b 100644 --- a/src/renderer/components/modal/modal.component.tsx +++ b/src/renderer/components/modal/modal.component.tsx @@ -23,7 +23,7 @@ export function Modal() {
modalSevice.resolve({exitCode: ModalExitCode.NO_CHOICE})} className="absolute top-0 bottom-0 right-0 left-0 bg-black" initial={{opacity: 0}} animate={{opacity: modalType && .60}} exit={{opacity: 0}} transition={{duration: .2}}/> -
+
{modalType === ModalType.STEAM_LOGIN && } {modalType === ModalType.GUARD_CODE && } diff --git a/src/renderer/components/shared/bsm-button.component.tsx b/src/renderer/components/shared/bsm-button.component.tsx index 539984a3..c71278ea 100644 --- a/src/renderer/components/shared/bsm-button.component.tsx +++ b/src/renderer/components/shared/bsm-button.component.tsx @@ -31,9 +31,12 @@ export function BsmButton({className, style, imgClassName, iconClassName, icon, const t = useTranslation(); const secondColor = useThemeColor("second-color"); - const primaryColor = typeColor === "primary" ? useThemeColor("first-color") : null; + const primaryColor = typeColor === "primary" && useThemeColor("first-color"); - const textColor = !primaryColor ? null : getCorrectTextColor(primaryColor); + const textColor = (() => { + if(primaryColor){ return getCorrectTextColor(primaryColor); } + return typeColor ? "white" : undefined; + })(); const renderTypeColor = (() => { if(typeColor === "primary"){ return ""; } @@ -49,7 +52,7 @@ export function BsmButton({className, style, imgClassName, iconClassName, icon,
{ image && } { icon && } - {text && (type === "submit" ? : {t(text)})} + {text && (type === "submit" ? : {t(text)})} { withBar && (