Skip to content

Commit

Permalink
Merge pull request #197 from dnsge/fix/testimonial-featured-link-href
Browse files Browse the repository at this point in the history
Fix testimonial featured link href
  • Loading branch information
rhatdan authored Oct 17, 2023
2 parents d080686 + 1180fad commit d17cf62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ui/Testimonial/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { Icon } from '@iconify/react';
type TestimonialProps = {
name: string;
handle: string;
image?: Image;
description: string;
social: string;
path: string;
date: string;
avatar: string;
featuredlink?: string;
};

function Testimonial(props: TestimonialProps) {
Expand All @@ -30,7 +31,7 @@ function Testimonial(props: TestimonialProps) {
</div>
<div className="mt-2 mb-4 truncate">
<p className="whitespace-normal text-gray-900 dark:text-gray-300 leading-snug mb-2">{props.description}</p>
{props.featuredlink && <a href="{props.featuredlink}">{props.featuredlink}</a>}
{props.featuredlink && <a target="_blank" href={props.featuredlink}>{props.featuredlink}</a>}
</div>
<div className="mt-auto self-start text-gray-300 dark:text-gray-700 italic">
<a href={props.path} className="text-gray-300 dark:text-gray-700 dark:hover:text-gray-700 no-underline hover:no-underline hover:bg-purple-300">
Expand Down

0 comments on commit d17cf62

Please sign in to comment.