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:
1 parent
0d485ffed6
commit
fa9d72fc0a
2 files changed
+5
-4
No files matched your search
@@ -54,11 +54,10 @@ export default function Meta({ title, description, backButton, CTA }: MetaType)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [title, description, backButton, CTA]);
|
||||
|
||||
const title_ = `${title} | ${APP_NAME}`;
|
||||
return (
|
||||
<Head>
|
||||
<title>
|
||||
{title} | {APP_NAME}
|
||||
</title>
|
||||
<title>{title_}</title>
|
||||
<meta name="description" content={description} />
|
||||
</Head>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user