pull/229/head v0.3.63
Ben Phelps 2 years ago
parent 30ec4aed28
commit 330575bab3

@ -35,7 +35,12 @@ export default function Item({ service }) {
<div className="flex select-none"> <div className="flex select-none">
{service.icon && {service.icon &&
(hasLink ? ( (hasLink ? (
<a type="button" href={service.href} className="flex-shrink-0 flex items-center justify-center w-12 "> <a
href={service.href}
target="_blank"
rel="noreferrer"
className="flex-shrink-0 flex items-center justify-center w-12 "
>
<Image src={resolveIcon(service.icon)} width={32} height={32} alt="logo" /> <Image src={resolveIcon(service.icon)} width={32} height={32} alt="logo" />
</a> </a>
) : ( ) : (
@ -45,16 +50,17 @@ export default function Item({ service }) {
))} ))}
{hasLink ? ( {hasLink ? (
<button <a
type="button"
href={service.href} href={service.href}
target="_blank"
rel="noreferrer"
className="flex-1 flex items-center justify-between rounded-r-md " className="flex-1 flex items-center justify-between rounded-r-md "
> >
<div className="flex-1 px-2 py-2 text-sm text-left"> <div className="flex-1 px-2 py-2 text-sm text-left">
{service.name} {service.name}
<p className="text-theme-500 dark:text-theme-400 text-xs font-extralight">{service.description}</p> <p className="text-theme-500 dark:text-theme-400 text-xs font-extralight">{service.description}</p>
</div> </div>
</button> </a>
) : ( ) : (
<div className="flex-1 flex items-center justify-between rounded-r-md "> <div className="flex-1 flex items-center justify-between rounded-r-md ">
<div className="flex-1 px-2 py-2 text-sm text-left"> <div className="flex-1 px-2 py-2 text-sm text-left">

Loading…
Cancel
Save