We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2a1643 commit feb4b2dCopy full SHA for feb4b2d
components/MemberLink.tsx
@@ -8,10 +8,7 @@ const MemberLink: React.FC<{ image: string; name: string; sponsor?: string }> =
8
<img src={image} alt={`${name}-image`} className="rounded-md bg-neutral-100 shadow-md dark:bg-neutral-900" />
9
</a>
10
<a href={sponsor ? `https://ko-fi.com/${sponsor}` : ''} target="_blank" className="w-full">
11
- <button className={`flex w-full items-center justify-center gap-2 rounded-md p-2 ${sponsor
12
- ? "text-sky-500 bg-sky-500/20 hover:bg-sky-500/30"
13
- : "text-slate-500 bg-slate-500/20"
14
- }`}>
+ <button disabled={!sponsor} className='flex w-full items-center justify-center gap-2 rounded-md p-2 text-sky-500 bg-sky-500/20 hover:bg-sky-500/30 disabled:text-slate-500 disabled:bg-slate-500/20'>
15
<IconCoffee />
16
Support
17
</button>
0 commit comments