Skip to content

Commit

Permalink
fix(remix-react): switch name & content position in meta tags (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro authored Aug 12, 2022
1 parent 780b9b1 commit 5987c9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- archwebio
- arganaphangquestian
- AriGunawan
- arnaudambro
- arvigeus
- arvindell
- ascorbic
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -740,15 +740,15 @@ export function Meta() {
if (isOpenGraphTag) {
return (
<meta
property={name}
content={content as string}
key={name + content}
property={name}
/>
);
}

if (typeof content === "string") {
return <meta content={content} name={name} key={name + content} />;
return <meta name={name} content={content} key={name + content} />;
}

return <meta key={name + JSON.stringify(content)} {...content} />;
Expand Down

0 comments on commit 5987c9e

Please sign in to comment.