Skip to content

Commit

Permalink
検索結果のコンポーネントをLinterルールに従って修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuw27b authored and renovate[bot] committed Dec 6, 2023
1 parent 300248e commit 4435298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/search/Search/HitComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link as LinkComponent } from 'gatsby'
import { Link } from 'gatsby'
import React, { FC } from 'react'
import styled from 'styled-components'

Expand Down Expand Up @@ -27,9 +27,9 @@ export const HitComponent: FC = (props: any) => {

return (
<Wrapper>
<LinkComponent to={`/${props.hit.path}`}>
<Link to={`/${props.hit.path}`}>
{props.hit.title}&nbsp;{categories[categoryKey] ? `|${'\u00A0'}${categories[categoryKey]}` : ''}
</LinkComponent>
</Link>
{props.hit.description && <StyledParagraph>{props.hit.description}</StyledParagraph>}
</Wrapper>
)
Expand Down

0 comments on commit 4435298

Please sign in to comment.