Skip to content

Commit

Permalink
Merge branch 'main' into feat/registry-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
siamak authored Nov 29, 2024
2 parents cea74f8 + 3774305 commit 1af4b43
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions apps/frontend/components/templates/Registry/RegistryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,64 +160,11 @@ export default function RegistryCard(props: RegistryCardData) {

{/* Attribution */}
{props.author && (
<<<<<<< HEAD
<AuthorSection
author={_author.title}
authorImage={authorImage}
href={authorHref}
/>
=======
<div
// onClick={() =>
// handleFilterChange(REGISTRY_FILTER_TYPES.owner, props.author)
// }
// onLoad={() =>
// prefetchFilterChange(REGISTRY_FILTER_TYPES.owner, props.author)
// }
className="rounded-sm focus:outline-none focus-visible:ring-[4px] focus-visible:ring-border-light dark:focus-visible:ring-border-dark"
>
<SanityLink
className="inline-flex items-center gap-xxs group"
link={{
_type: "link",
href: `https://github.com/${props.author}`,
}}
>
<span className="body-s-medium font-medium">by</span>

<>
{authorImage?.image.light && (
<SanityImage
maxWidth={20}
image={authorImage.image.light}
alt={authorImage.image.light.alt}
elProps={{
width: 20,
height: 20,
className: "h-5 w-5 dark:hidden",
}}
/>
)}

{authorImage?.image.dark && (
<SanityImage
maxWidth={20}
image={authorImage.image.dark}
alt={authorImage.image.dark.alt}
elProps={{
width: 20,
height: 20,
className: "hidden h-5 w-5 dark:inline",
}}
/>
)}
</>
<span className="body-s-medium font-mono group-hover:opacity-50 transition-opacity">
@{props.author}
</span>
</SanityLink>
</div>
>>>>>>> 782c3d98 (feat: Improved Registy card and Registy page (single) (#1384))
)}
</div>
</li>
Expand Down

0 comments on commit 1af4b43

Please sign in to comment.