From 9a7cf62814dada17d9ff740e1ad11520f3e4e870 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Wed, 17 Jul 2024 15:32:04 +0100 Subject: [PATCH] Fixing imports --- apps/addon-catalog/components/addon/addon-hero.tsx | 14 +++++++------- apps/addon-catalog/components/preview.tsx | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) 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';