add danger style to button

This commit is contained in:
Zamitto 2024-06-08 01:11:37 -03:00
parent f1b30eb969
commit 2e427b33e2
2 changed files with 14 additions and 2 deletions

View file

@ -55,4 +55,16 @@ export const button = styleVariants({
color: "#c0c1c7", color: "#c0c1c7",
}, },
], ],
danger: [
base,
{
border: `solid 1px #a31533`,
backgroundColor: "transparent",
color: "white",
":hover": {
backgroundColor: "#a31533",
color: "white",
},
},
],
}); });

View file

@ -174,7 +174,7 @@ export function GameOptionsModal({
<Button <Button
onClick={() => setShowRemoveGameModal(true)} onClick={() => setShowRemoveGameModal(true)}
style={{ alignSelf: "flex-end" }} style={{ alignSelf: "flex-end" }}
theme="outline" theme="danger"
disabled={deleting} disabled={deleting}
> >
{t("remove_from_library")} {t("remove_from_library")}
@ -184,7 +184,7 @@ export function GameOptionsModal({
setShowDeleteModal(true); setShowDeleteModal(true);
}} }}
style={{ alignSelf: "flex-end" }} style={{ alignSelf: "flex-end" }}
theme="outline" theme="danger"
disabled={isGameDownloading || deleting || !game.downloadPath} disabled={isGameDownloading || deleting || !game.downloadPath}
> >
{t("remove_files")} {t("remove_files")}