docs: add prereq commas (#25626)

This commit is contained in:
Bagatur 2024-08-21 12:38:53 -07:00 committed by GitHub
parent b71ae52e65
commit f4b3c90886
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,11 +8,14 @@ export default function Compatibility({ packagesAndVersions }) {
The code in this guide requires{" "}
{packagesAndVersions.map(([pkg, version], i) => {
return (
<code key={`compatiblity-map${pkg}>=${version}-${i}`}>{`${pkg}>=${version}`}</code>
<span key={`compatibility-map${pkg}>=${version}-${i}`}>
<code>{`${pkg}>=${version}`}</code>
{i < packagesAndVersions.length - 1 && ", "}
</span>
);
})}.
Please ensure you have the correct packages installed.
</span>
</Admonition>
);
}
}