update strings and style

This commit is contained in:
Snazzah 2021-08-31 04:50:48 +00:00 committed by GitHub
parent e92877158c
commit 8ea0615600
2 changed files with 4 additions and 3 deletions

View file

@ -230,7 +230,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
} else setEditMode(true);
}}
contrast>
{editMode ? "Cancel" : "Edit"}
{editMode ? <Text id="app.special.modals.actions.cancel" /> : "Edit"}
</Button>
</div>
{!editMode && (
@ -298,7 +298,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
{editMode && (
<>
<Button accent onClick={save}>
Save
<Text id="app.special.modals.actions.save" />
</Button>
<Button
error
@ -307,7 +307,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
await client.bots.delete(bot._id);
onDelete();
}}>
Delete
<Text id="app.special.modals.actions.delete" />
</Button>
</>
)}

View file

@ -532,6 +532,7 @@
border-radius: var(--border-radius);
h5 { margin-bottom: 1em }
h3 { margin-bottom: 0 }
}
.botSection {