Skip to content

Commit ebf9db5

Browse files
fix(studio): syntax error in banner (supabase#38601)
* fix: rendering anchor inside button * chore: revert banner logic out of testing purposes * chore: debugging the gap * chore: remove unused css
1 parent b8bc7ff commit ebf9db5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/studio/components/interfaces/Organization/HeaderBanner.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const HeaderBanner = ({
5050
type === 'incident' && 'hover:bg-brand-300',
5151
'flex-shrink-0'
5252
)}
53+
layout="position"
5354
>
5455
<div className={cn('items-center flex flex-row gap-3')}>
5556
<div className="absolute inset-y-0 left-0 right-0 overflow-hidden z-0">
@@ -98,15 +99,16 @@ export const HeaderBanner = ({
9899
</span>
99100
</div>
100101
{link && (
101-
<button
102+
<a
103+
href={link}
102104
className={cn(
103105
'lg:block hidden',
104106
'text-foreground-lighter text-sm z-[1] m-0',
105107
type === 'danger' ? 'text-destructive' : 'text-warning'
106108
)}
107109
>
108-
<Link href={link}>View Details</Link>
109-
</button>
110+
View Details
111+
</a>
110112
)}
111113
</div>
112114
</motion.div>

0 commit comments

Comments
 (0)