Skip to content

Commit c59e6f1

Browse files
committed
Remove duplicate ChevronArrow component, import from model-primitives instead
1 parent d4199fe commit c59e6f1

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

apps/sim/app/(landing)/integrations/components/integration-card.tsx

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ComponentType, SVGProps } from 'react'
22
import Link from 'next/link'
33
import type { Integration } from '@/app/(landing)/integrations/data/types'
4+
import { ChevronArrow } from '@/app/(landing)/models/components/model-primitives'
45
import { IntegrationIcon } from './integration-icon'
56

67
interface IntegrationCardProps {
@@ -81,39 +82,3 @@ export function IntegrationRow({ integration, IconComponent }: IntegrationRowPro
8182
</>
8283
)
8384
}
84-
85-
/**
86-
* Animated chevron arrow matching the footer/landing pattern.
87-
* Line scales in from left, chevron translates right on hover.
88-
*/
89-
function ChevronArrow() {
90-
return (
91-
<svg
92-
className='h-3 w-3 shrink-0 text-[var(--landing-text-subtle)]'
93-
viewBox='0 0 10 10'
94-
fill='none'
95-
xmlns='http://www.w3.org/2000/svg'
96-
aria-hidden='true'
97-
>
98-
<line
99-
x1='0'
100-
y1='5'
101-
x2='9'
102-
y2='5'
103-
stroke='currentColor'
104-
strokeWidth='1.33'
105-
strokeLinecap='square'
106-
className='origin-left scale-x-0 transition-transform duration-200 ease-out [transform-box:fill-box] group-hover/link:scale-x-100'
107-
/>
108-
<path
109-
d='M3.5 2L6.5 5L3.5 8'
110-
stroke='currentColor'
111-
strokeWidth='1.33'
112-
strokeLinecap='square'
113-
strokeLinejoin='miter'
114-
fill='none'
115-
className='transition-transform duration-200 ease-out group-hover/link:translate-x-[30%]'
116-
/>
117-
</svg>
118-
)
119-
}

0 commit comments

Comments
 (0)