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

View file

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