Skip to content

Commit

Permalink
Fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Dec 6, 2023
1 parent 3a01c7b commit 7b66d37
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/core-extensions/src/moonbase/ui/info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ export default (require: typeof WebpackRequire) => {
const comma = i !== authors.length - 1 ? ", " : "";
if (typeof author === "string") {
return (
<span>
<span key={i}>
{author}
{comma}
</span>
);
} else {
// TODO: resolve IDs
return (
<span>
<span key={i}>
{author.name}
{comma}
</span>
Expand Down Expand Up @@ -159,6 +159,7 @@ export default (require: typeof WebpackRequire) => {

return (
<Badge
key={i}
color={
tag === ExtensionTag.DangerZone
? "var(--red-400)"
Expand All @@ -182,7 +183,11 @@ export default (require: typeof WebpackRequire) => {
};
const color = colors[dep.type];
const name = MoonbaseSettingsStore.getExtensionName(dep.id);
return <Badge color={color}>{name}</Badge>;
return (
<Badge color={color} key={dep.id}>
{name}
</Badge>
);
})}
</InfoSection>
)}
Expand Down

0 comments on commit 7b66d37

Please sign in to comment.