From 71ffad9adfbc3ee83f5ac8d9c47da5e6e2751ce3 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 3 Sep 2021 11:07:58 +0100 Subject: [PATCH] Format code for MyBots.tsx, fix i18n and make buttons less aggressive. --- src/pages/settings/panes/MyBots.tsx | 30 +++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/pages/settings/panes/MyBots.tsx b/src/pages/settings/panes/MyBots.tsx index 09b05e1f..a524e9c1 100644 --- a/src/pages/settings/panes/MyBots.tsx +++ b/src/pages/settings/panes/MyBots.tsx @@ -1,5 +1,6 @@ import { Key, Clipboard, Globe, Plus } from "@styled-icons/boxicons-regular"; import { LockAlt } from "@styled-icons/boxicons-solid"; +import type { AxiosError } from "axios"; import { observer } from "mobx-react-lite"; import { Bot } from "revolt-api/types/Bots"; import { User } from "revolt.js/dist/maps/Users"; @@ -23,7 +24,6 @@ import Checkbox from "../../../components/ui/Checkbox"; import InputBox from "../../../components/ui/InputBox"; import Tip from "../../../components/ui/Tip"; import CategoryButton from "../../../components/ui/fluent/CategoryButton"; -import type { AxiosError } from "axios"; interface Data { _id: string; @@ -203,7 +203,12 @@ function BotCard({ bot, onDelete, onUpdate }: Props) { {!editMode && ( + content={ + }> {bot.public ? ( @@ -229,7 +234,11 @@ function BotCard({ bot, onDelete, onUpdate }: Props) { } else setEditMode(true); }} contrast> - + {!editMode && ( @@ -265,12 +274,18 @@ function BotCard({ bot, onDelete, onUpdate }: Props) { checked={data.public} disabled={saving} contrast - description={} + description={ + + } onChange={(v) => setData({ ...data, public: v })}> -

-
+

+ +

+
+ +
)}