From ef13db666ddcb3fd35400a50d9d15a9c2e8423df Mon Sep 17 00:00:00 2001 From: knugget Date: Mon, 6 Mar 2023 09:24:12 +0100 Subject: [PATCH] fix label on Add API Modal --- .../src/components/me/ProfileSettingsPage.tsx | 71 ++++++++++--------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/apps/web/src/components/me/ProfileSettingsPage.tsx b/apps/web/src/components/me/ProfileSettingsPage.tsx index a4a305d5cb..3a9ab65dac 100644 --- a/apps/web/src/components/me/ProfileSettingsPage.tsx +++ b/apps/web/src/components/me/ProfileSettingsPage.tsx @@ -122,42 +122,43 @@ export default function ProfileSettingsPage() { {openNewApiKeyModal && ( -

- Create a Personal API Key -

-
-
{ - e.preventDefault(); - const apiKey = await createApiKey({ label: e.target.label.value }); - mutateApiKeys([...JSON.parse(JSON.stringify(apiKeys)), apiKey], false); - setOpenNewApiKeyModal(false); - }}> -
- -
- +
+

+ Create new Personal API Key +

+
+ { + e.preventDefault(); + const apiKey = await createApiKey({ label: e.target.label.value }); + mutateApiKeys([...JSON.parse(JSON.stringify(apiKeys)), apiKey], false); + setOpenNewApiKeyModal(false); + }}> +
+ +
+ +
-
-

- Key value will only ever be shown once, immediately after creation. Copy it to your destination - right away. -

-
- - -
- +

+ The API key will only be shown once. Copy it to your destination right away. +

+
+ + +
+ +
)}