Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions app/src/components/home-page-featured-threads-carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ const HomePageFeaturedThreadsCarousel = ({
</Typography>

<div className="flex items-center gap-2">
<Button variant="icon" onClick={handlePrev}>
<Button
variant="icon"
onClick={handlePrev}
aria-label={t("home.featuredThreadsPrevious")}
>
<SvgIconArrowLeft />
</Button>
<Button variant="icon" onClick={handleNext}>
<Button variant="icon" onClick={handleNext} aria-label={t("home.featuredThreadsNext")}>
<SvgIconArrowRight />
</Button>
</div>
Expand Down
10 changes: 5 additions & 5 deletions app/src/components/ui/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,20 @@ const cardActionsVariantClassNames: CardVariantMapping = {
grid: "absolute top-3 right-3",
} as const;

type CardActionsProps = Omit<React.ComponentProps<"button">, "children">;
type CardActionsProps = Omit<React.ComponentProps<"span">, "children">;

const CardActions = ({ className, ...props }: CardActionsProps) => {
const variant = useContext(CardContext);

return (
<button
type="button"
<span
data-slot="card-actions"
className={cn("cursor-pointer", cardActionsVariantClassNames[variant], className)}
aria-hidden="true"
className={cn("inline-flex", cardActionsVariantClassNames[variant], className)}
{...props}
>
<SvgIconArrowLink size="sm" color="accent" />
</button>
</span>
);
};

Expand Down
2 changes: 2 additions & 0 deletions app/src/copy/en-EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
"howToUse": "How to Use",
"featuredThreadsTitle": "/Featured <gradient>threads</gradient>",
"featuredThreadsDescription": "Handpicked conversations worth exploring.",
"featuredThreadsPrevious": "Show previous featured threads",
"featuredThreadsNext": "Show next featured threads",
"seeMoreThreads": "See more threads"
},
"error": {
Expand Down
Loading