mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 20:20:16 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
50
package/@stackframe/react/dist/esm/components-page/account-settings/profile-page/profile-page.js
vendored
Normal file
50
package/@stackframe/react/dist/esm/components-page/account-settings/profile-page/profile-page.js
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// src/components-page/account-settings/profile-page/profile-page.tsx
|
||||
import { ProfileImageEditor } from "../../../components/profile-image-editor";
|
||||
import { useUser } from "../../../lib/hooks";
|
||||
import { useTranslation } from "../../../lib/translations";
|
||||
import { EditableText } from "../editable-text";
|
||||
import { PageLayout } from "../page-layout";
|
||||
import { Section } from "../section";
|
||||
import { jsx, jsxs } from "react/jsx-runtime";
|
||||
function ProfilePage() {
|
||||
const { t } = useTranslation();
|
||||
const user = useUser({ or: "redirect" });
|
||||
return /* @__PURE__ */ jsxs(PageLayout, { children: [
|
||||
/* @__PURE__ */ jsx(
|
||||
Section,
|
||||
{
|
||||
title: t("User name"),
|
||||
description: t("This is a display name and is not used for authentication"),
|
||||
children: /* @__PURE__ */ jsx(
|
||||
EditableText,
|
||||
{
|
||||
value: user.displayName || "",
|
||||
onSave: async (newDisplayName) => {
|
||||
await user.update({ displayName: newDisplayName });
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
),
|
||||
/* @__PURE__ */ jsx(
|
||||
Section,
|
||||
{
|
||||
title: t("Profile image"),
|
||||
description: t("Upload your own image as your avatar"),
|
||||
children: /* @__PURE__ */ jsx(
|
||||
ProfileImageEditor,
|
||||
{
|
||||
user,
|
||||
onProfileImageUrlChange: async (profileImageUrl) => {
|
||||
await user.update({ profileImageUrl });
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
] });
|
||||
}
|
||||
export {
|
||||
ProfilePage
|
||||
};
|
||||
//# sourceMappingURL=profile-page.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue