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
14 changes: 10 additions & 4 deletions src/assets/icons/ArrowLeftIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import * as React from 'react';
import { SVGProps } from 'react';
import { cn } from '@/utils';
import ArrowRightIcon from '@/assets/icons/ArrowRightIcon';

const ArrowLeftIcon = ({ className, ...props }: SVGProps<SVGSVGElement>) => (
<ArrowRightIcon className={cn('rotate-180', className)} {...props} />
const ArrowLeftIcon = (props: SVGProps<SVGSVGElement>) => (
<svg xmlns='http://www.w3.org/2000/svg' width={16} height={16} fill='none' {...props}>
<path
stroke='#000'
strokeLinecap='round'
strokeLinejoin='round'
strokeWidth={2}
d='m10 12-4-4 4-4'
/>
</svg>
);
export default ArrowLeftIcon;
2 changes: 1 addition & 1 deletion src/components/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function CarouselNavButton({
onClick={handleClick}
{...props}>
{isPrevious ? (
<ArrowLeftIcon className={orientation === 'vertical' ? '-rotate-90' : ''} />
<ArrowLeftIcon className={orientation === 'vertical' ? 'rotate-90' : ''} />
) : (
<ArrowRightIcon className={orientation === 'vertical' ? 'rotate-90' : ''} />
)}
Expand Down
Loading