main
Elias Almqvist 8 months ago
parent bae9d2d415
commit a09f0a0ca6
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 6
      src/app/page.tsx
  2. 18
      src/components/age.tsx

@ -42,10 +42,10 @@ export default function Home() {
<ILink href="https://rembr.co" target="_blank">
ingenuity
</ILink>
. Most of my projects are open-source, and if you are
interested, you can find all of my projects on my{" "}
. Some of my projects are open-source (FOSS), and if you are
interested, you can find them on my{" "}
<ILink href="https://git.wych.dev/elal" target="_blank">
git-server
self-hosted git-server
</ILink>{" "}
or{" "}
<ILink href="https://github.com/almqv" target="_blank">

@ -58,12 +58,18 @@ const FormatBigNumber: React.FC<FormatBigNumberProps> = ({
const formattedBase = base.toFixed(precision);
const suffix = suffixes[exponent];
return (
<span className={cn("inline-flex flex-row space-x-0.5 mr-0.5", className)}>
<span className="inline-block">{formattedBase}</span>
<span className="inline-block">{suffix}</span>
</span>
);
if (base) {
return (
<span
className={cn("inline-flex flex-row space-x-0.5 mr-0.5 pointer-events-none", className)}
>
<span className="inline-block">{formattedBase}</span>
<span className="inline-block">{suffix}</span>
</span>
);
} else {
return null;
}
};
type AgeHCyclesDisplayProps = {

Loading…
Cancel
Save