Skip to content

Commit

Permalink
(fix) fix build error with linter
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilShahi committed Sep 6, 2022
1 parent 2da24e2 commit 3cb54eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Endpoint/SpecComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const SpecComponent: React.FC<SpecComponentProps> = ({ endpoint }) => {
</span>
<span style={{ display: "table-cell" }}>
{line.map((token, key) => (
<span {...getTokenProps({ token, key })} />
<span key={key} {...getTokenProps({ token, key })} />
))}
</span>
</pre>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export const Logo = React.memo((props: BoxProps) => {
)
return (
<Box {...props}>
<Image height="36" width="127" src={imageSrc} />
<Image alt="logo-image" height="36" width="127" src={imageSrc} />
</Box>
)
})

export const SmLogo = React.memo((props: BoxProps) => {
return (
<Box {...props}>
<Image height="30" width="30" src="/metlo_logo.svg" />
<Image alt="logo-image" height="30" width="30" src="/metlo_logo.svg" />
</Box>
)
})

0 comments on commit 3cb54eb

Please sign in to comment.