diff --git a/apps/addon-catalog/components/addon/addon-hero.tsx b/apps/addon-catalog/components/addon/addon-hero.tsx index 74a0883a..0cdfd8c3 100644 --- a/apps/addon-catalog/components/addon/addon-hero.tsx +++ b/apps/addon-catalog/components/addon/addon-hero.tsx @@ -6,7 +6,7 @@ import { GithubIcon, VerifiedIcon, } from '@storybook/icons'; -import { humanFormat } from 'human-format'; +import humanFormat from 'human-format'; import copy from 'copy-to-clipboard'; import { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; @@ -25,12 +25,12 @@ export function AddonHero({ addon }: { addon: Addon }) { }; return ( -
+
{addon.icon ? (
) : null}
@@ -45,7 +45,7 @@ export function AddonHero({ addon }: { addon: Addon }) {

{addon.description}

-
-
+
+
{humanFormat(addon.weeklyDownloads ?? 0, { decimals: 0, diff --git a/apps/addon-catalog/components/preview.tsx b/apps/addon-catalog/components/preview.tsx index 3019ddb1..bdebec97 100644 --- a/apps/addon-catalog/components/preview.tsx +++ b/apps/addon-catalog/components/preview.tsx @@ -1,5 +1,5 @@ /* eslint-disable @next/next/no-img-element -- We can't know where the images are from */ -import { humanFormat } from 'human-format'; +import humanFormat from 'human-format'; import { cn } from '@repo/utils'; import Image from 'next/image'; import { StorybookIcon, VerifiedIcon } from '@storybook/icons';