Shramkoweb/Portfolio

View on GitHub
components/blog-post-square-preview/blog-post-square-preview.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function BlogPostSquarePreview has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function BlogPostSquarePreview(props: BlogPostPreviewProps) {
  const { heading, slug, classNames } = props;

  const { data } = useSWR<Views>(`/api/views/${slug}`, fetcher);
  const views = data?.total;
Severity: Minor
Found in components/blog-post-square-preview/blog-post-square-preview.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status