fix: flash of untranslated title in settings/my-account/profile (#6163)

* fix: flash of untranslated content

* feat: extract loading into a variable

* fix: use optional chaining because typescript complaining

* feat: render Meta component even if not loading for seo purpose

* fix: received an array with more than 1 element as
children warning

* fix: changes

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Nafees NazikandPeer Richelsen authored and GitHub committed 2023-01-06 10:35:32 -07:00
1 parent 0d485ffed6
commit fa9d72fc0a
2 files changed
+5 -4

No files matched your search

@@ -181,7 +181,9 @@ const ProfileView = () => {
};
if (isLoading || !user || isLoadingAvatar || !avatar)
return <SkeletonLoader title={t("profile")} description={t("profile_description")} />;
return (
<SkeletonLoader title={t("profile")} description={t("profile_description", { appName: APP_NAME })} />
);
const defaultValues = {
username: user.username || "",