diff --git a/components/dashboard/src/user-settings/Account.tsx b/components/dashboard/src/user-settings/Account.tsx index fb6262755f8a6c..60813ff668add6 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 ( @@ -141,7 +144,7 @@ function ProfileInformation(props: { )}
-
+
-
+ {props.user && ( +
+ +

+ +

+
+ )} +
Avatar