Skip to content

Commit

Permalink
typo修正
Browse files Browse the repository at this point in the history
  • Loading branch information
k35o committed Sep 21, 2024
1 parent 79fc188 commit 433fafa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/blog/_components/blog-layout/blog-layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { formatDate } from '@/utils/date/format';
import { Calendar, Eye } from 'lucide-react';
import { FC, ReactNode, Suspense } from 'react';
import { ViewCoounter } from '../view-counter';
import { ViewCounter } from '../view-counter';
import { Slug } from '../../_types';
import { ErrorBoundary } from 'react-error-boundary';

Expand All @@ -18,7 +18,7 @@ export const BlogLayout: FC<{
<Suspense fallback={<></>}>
<div className="flex items-center gap-1">
<Eye className="size-4" />
<ViewCoounter slug={slug} />
<ViewCounter slug={slug} />
</div>
</Suspense>
</ErrorBoundary>
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/_components/view-counter/view-counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { kv } from '#vercel/kv';
import { commalize } from '@/utils/number/commalize';
import { Slug } from '../../_types';

export const ViewCoounter: FC<{ slug: Slug }> = async ({ slug }) => {
export const ViewCounter: FC<{ slug: Slug }> = async ({ slug }) => {
const views = await kv.incr(`views-${slug}`);
return <span>{commalize(views)}</span>;
};

0 comments on commit 433fafa

Please sign in to comment.