diff --git a/apps/studio/components/interfaces/Home/ProjectUsage.tsx b/apps/studio/components/interfaces/Home/ProjectUsage.tsx index e49cba76999..c68647a87e8 100644 --- a/apps/studio/components/interfaces/Home/ProjectUsage.tsx +++ b/apps/studio/components/interfaces/Home/ProjectUsage.tsx @@ -214,25 +214,24 @@ const ProjectUsage = () => { } export default ProjectUsage -const PanelHeader = (props: { - icon: ReactNode - title: string - href?: string -}) => { - const Tag = props?.href ? Link : 'div' - return ( - -
-
{props.icon}
- -

{props.title}

-
-
-
+const PanelHeader = (props: { icon: ReactNode; title: string; href?: string }) => { + const inner = ( +
+
{props.icon}
+ +

{props.title}

+
+
) + + if (props.href) { + return {inner} + } + + return inner }