mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
fix build
This commit is contained in:
1 file changed
+19
-20
@@ -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 (
|
||||
<Tag href={props.href}>
|
||||
<div
|
||||
className={
|
||||
'flex items-center space-x-3 opacity-80 transition ' +
|
||||
(props.href ? 'cursor-pointer hover:text-gray-1200 hover:opacity-100' : '')
|
||||
}
|
||||
>
|
||||
<div>{props.icon}</div>
|
||||
<span className="flex items-center space-x-1">
|
||||
<h4 className="mb-0 text-lg">{props.title}</h4>
|
||||
</span>
|
||||
</div>
|
||||
</Tag>
|
||||
const PanelHeader = (props: { icon: ReactNode; title: string; href?: string }) => {
|
||||
const inner = (
|
||||
<div
|
||||
className={
|
||||
'flex items-center space-x-3 opacity-80 transition ' +
|
||||
(props.href ? 'cursor-pointer hover:text-gray-1200 hover:opacity-100' : '')
|
||||
}
|
||||
>
|
||||
<div>{props.icon}</div>
|
||||
<span className="flex items-center space-x-1">
|
||||
<h4 className="mb-0 text-lg">{props.title}</h4>
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
|
||||
if (props.href) {
|
||||
return <Link href={props.href}>{inner}</Link>
|
||||
}
|
||||
|
||||
return inner
|
||||
}
|
||||
Reference in new issue
Block a user