* refactor: remove barrel exports from some compoennt modules * refactor: remove barrel exports from issue components * refactor: remove barrel exports from page components * chore: update type improts * refactor: remove barrel exports from cycle components * refactor: remove barrel exports from dropdown components * refactor: remove barrel exports from ce components * refactor: remove barrel exports from some more components * refactor: remove barrel exports from profile and sidebar components * chore: update type imports * refactor: remove barrel exports from store hooks * chore: dynamically load sticky editor * fix: lint * chore: revert sticky dynamic import * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
36 lines
1 KiB
TypeScript
36 lines
1 KiB
TypeScript
"use client";
|
|
|
|
import { observer } from "mobx-react";
|
|
// plane imports
|
|
import { useTranslation } from "@plane/i18n";
|
|
// components
|
|
import { LogoSpinner } from "@/components/common/logo-spinner";
|
|
import { PageHead } from "@/components/core/page-title";
|
|
import { ProfileForm } from "@/components/profile/form";
|
|
import { ProfileSettingContentWrapper } from "@/components/profile/profile-setting-content-wrapper";
|
|
// hooks
|
|
import { useUser } from "@/hooks/store/user";
|
|
|
|
const ProfileSettingsPage = observer(() => {
|
|
const { t } = useTranslation();
|
|
// store hooks
|
|
const { data: currentUser, userProfile } = useUser();
|
|
|
|
if (!currentUser)
|
|
return (
|
|
<div className="grid h-full w-full place-items-center px-4 sm:px-0">
|
|
<LogoSpinner />
|
|
</div>
|
|
);
|
|
|
|
return (
|
|
<>
|
|
<PageHead title={`${t("profile.label")} - ${t("general_settings")}`} />
|
|
<ProfileSettingContentWrapper>
|
|
<ProfileForm user={currentUser} profile={userProfile.data} />
|
|
</ProfileSettingContentWrapper>
|
|
</>
|
|
);
|
|
});
|
|
|
|
export default ProfileSettingsPage;
|