1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 20:15:31 -04:00

refactor: replace react-countup with @number-flow/react

This commit is contained in:
2026-04-30 10:36:33 -04:00
parent b2416ff0db
commit 62d632f909
26 changed files with 419 additions and 450 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
"use client";
import { EyeIcon, MessagesSquareIcon } from "lucide-react";
import { IconEye, IconMessages } from "@tabler/icons-react";
import Link from "next/link";
import { createContext, type ReactNode, useContext, useEffect, useState } from "react";
@@ -74,7 +74,7 @@ const PostStats = ({ slug }: { slug: string }) => {
variant="secondary"
className="text-foreground/80 gap-[5px] text-[11px] tabular-nums"
>
<EyeIcon className="text-foreground/65" aria-hidden="true" />
<IconEye className="text-foreground/65" aria-hidden="true" />
{numberFormatter.format(viewCount)}
</Badge>
)}
@@ -90,7 +90,7 @@ const PostStats = ({ slug }: { slug: string }) => {
/>
}
>
<MessagesSquareIcon className="text-foreground/65" aria-hidden="true" />
<IconMessages className="text-foreground/65" aria-hidden="true" />
{numberFormatter.format(commentCount)}
</Badge>
)}