From 33dcee35bb067c8542ff56d5c72315d0ece60e63 Mon Sep 17 00:00:00 2001 From: filiptronicek Date: Thu, 15 Jun 2023 14:55:10 +0000 Subject: [PATCH 1/2] Show User ID on Account page --- components/dashboard/src/user-settings/Account.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/dashboard/src/user-settings/Account.tsx b/components/dashboard/src/user-settings/Account.tsx index fb6262755f8a6c..e2ef1ab46affea 100644 --- a/components/dashboard/src/user-settings/Account.tsx +++ b/components/dashboard/src/user-settings/Account.tsx @@ -16,6 +16,7 @@ import Alert from "../components/Alert"; import { TextInputField } from "../components/forms/TextInputField"; import isEmail from "validator/lib/isEmail"; import { useToast } from "../components/toasts/Toasts"; +import { InputWithCopy } from "../components/InputWithCopy"; export default function Account() { const { user, setUser } = useContext(UserContext); @@ -103,6 +104,7 @@ export default function Account() { }} errorMessage={errorMessage} emailIsReadonly={!canUpdateEmail} + user={user} >
@@ -126,6 +128,7 @@ function ProfileInformation(props: { setProfileState: (newState: User.Profile) => void; errorMessage: string; emailIsReadonly?: boolean; + user?: User; children?: React.ReactChild[] | React.ReactChild; }) { return ( @@ -164,6 +167,12 @@ function ProfileInformation(props: { src={props.profileState.avatarURL} alt={props.profileState.name} /> + {props.user && ( +

+ User ID: + +

+ )}
From 83a552709e00a94f4d1d1abb43deb6c7690b0dac Mon Sep 17 00:00:00 2001 From: filiptronicek Date: Thu, 15 Jun 2023 15:52:45 +0000 Subject: [PATCH 2/2] Move under other inputs --- .../dashboard/src/user-settings/Account.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/components/dashboard/src/user-settings/Account.tsx b/components/dashboard/src/user-settings/Account.tsx index e2ef1ab46affea..60813ff668add6 100644 --- a/components/dashboard/src/user-settings/Account.tsx +++ b/components/dashboard/src/user-settings/Account.tsx @@ -144,7 +144,7 @@ function ProfileInformation(props: { )}
-
+
-
+ {props.user && ( +
+ +

+ +

+
+ )} +
Avatar @@ -167,12 +175,6 @@ function ProfileInformation(props: { src={props.profileState.avatarURL} alt={props.profileState.name} /> - {props.user && ( -

- User ID: - -

- )}