fix button display #199

This commit is contained in:
Jon Eugster
2024-06-12 01:15:57 +02:00
parent dea5fd0558
commit a0ecaeeece
2 changed files with 3 additions and 6 deletions
+2 -6
View File
@@ -63,12 +63,8 @@ export function ErasePopup () {
<p>Do you want to delete your saved progress irreversibly?</p>
</Trans>
<div className='settings-buttons'>
{ levelId ?
<Button onClick={eraseLevel} to="">{t("Delete this Level")}</Button> : <></>
}
{ worldId ?
<Button onClick={eraseWorld} to="">{t("Delete this World")}</Button> : <></>
}
<Button onClick={levelId && eraseLevel} to="" disabled={!levelId} >{t("Delete this Level")}</Button>
<Button onClick={worldId && eraseWorld} to="" disabled={!worldId} >{t("Delete this World")}</Button>
<Button onClick={eraseProgress} to={`/${gameId}/`}>{t("Delete Everything")}</Button>
</div>
<Trans>
+1
View File
@@ -78,6 +78,7 @@ body {
.btn-disabled, .btn[disabled] {
color: var(--clr-dark-gray);
background: var(--clr-light-gray);
cursor: not-allowed;
}
.btn-inverted.btn-disabled, .btn-inverted.btn[disabled] {