File tree 4 files changed +20
-20
lines changed
apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations
4 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ export function FeaturedIntegrationsLoader() {
172
172
< div >
173
173
< div className = "overflow-hidden" >
174
174
< div className = "-ml-4 flex -translate-x-1/2" >
175
- { [ ...Array ( 3 ) ] . map ( ( ) => (
176
- < div className = "min-w-0 shrink-0 grow-0 basis-2/3 pl-4" >
175
+ { [ ...Array ( 3 ) ] . map ( ( _ , idx ) => (
176
+ < div key = { idx } className = "min-w-0 shrink-0 grow-0 basis-2/3 pl-4" >
177
177
< div className = "border border-transparent" >
178
178
< div className = "aspect-[900/580] animate-pulse rounded-lg bg-neutral-200" />
179
179
</ div >
@@ -182,8 +182,11 @@ export function FeaturedIntegrationsLoader() {
182
182
</ div >
183
183
</ div >
184
184
< div className = "mt-6 flex items-center justify-center gap-4 pb-1" >
185
- { [ ...Array ( 4 ) ] . map ( ( ) => (
186
- < div className = "size-8 animate-pulse rounded-lg bg-neutral-200" />
185
+ { [ ...Array ( 4 ) ] . map ( ( _ , idx ) => (
186
+ < div
187
+ key = { idx }
188
+ className = "size-8 animate-pulse rounded-lg bg-neutral-200"
189
+ />
187
190
) ) }
188
191
</ div >
189
192
</ div >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const PRESENCE_ANIMATION = {
28
28
transition : { duration : 0.1 } ,
29
29
} ;
30
30
31
- export async function IntegrationsCards ( {
31
+ export function IntegrationsCards ( {
32
32
integrations,
33
33
} : {
34
34
integrations : IntegrationsWithInstallations ;
Original file line number Diff line number Diff line change 1
- import { SVGProps } from "react" ;
1
+ import { SVGProps , useId } from "react" ;
2
2
3
3
export function CardDiscover ( props : SVGProps < SVGSVGElement > ) {
4
+ const id = useId ( ) ;
5
+
4
6
return (
5
7
< svg
6
8
xmlns = "http://www.w3.org/2000/svg"
@@ -10,25 +12,20 @@ export function CardDiscover(props: SVGProps<SVGSVGElement>) {
10
12
viewBox = "0 0 22 22"
11
13
{ ...props }
12
14
>
13
- < g filter = "url(#filter0_i_3233_2334)" >
14
- < circle
15
- cx = "11"
16
- cy = "11"
17
- r = "10.1145"
18
- fill = "url(#paint0_linear_3233_2334)"
19
- />
15
+ < g filter = { `url(#${ id } -filter)` } >
16
+ < circle cx = "11" cy = "11" r = "10.1145" fill = { `url(#${ id } -gradient)` } />
20
17
</ g >
21
18
< defs >
22
19
< filter
23
- id = "filter0_i_3233_2334"
20
+ id = { ` ${ id } -filter` }
24
21
x = "0.885498"
25
22
y = "0.885483"
26
23
width = "22.229"
27
24
height = "22.229"
28
25
filterUnits = "userSpaceOnUse"
29
- color-interpolation-filters = "sRGB"
26
+ colorInterpolationFilters = "sRGB"
30
27
>
31
- < feFlood flood-opacity = "0" result = "BackgroundImageFix" />
28
+ < feFlood floodOpacity = "0" result = "BackgroundImageFix" />
32
29
< feBlend
33
30
mode = "normal"
34
31
in = "SourceGraphic"
@@ -55,15 +52,15 @@ export function CardDiscover(props: SVGProps<SVGSVGElement>) {
55
52
/>
56
53
</ filter >
57
54
< linearGradient
58
- id = "paint0_linear_3233_2334"
55
+ id = { ` ${ id } -gradient` }
59
56
x1 = "0.885498"
60
57
y1 = "0.885483"
61
58
x2 = "21.1145"
62
59
y2 = "21.1145"
63
60
gradientUnits = "userSpaceOnUse"
64
61
>
65
- < stop offset = "0.28" stop-color = "#E0481E" />
66
- < stop offset = "0.765" stop-color = "#F59214" />
62
+ < stop offset = "0.28" stopColor = "#E0481E" />
63
+ < stop offset = "0.765" stopColor = "#F59214" />
67
64
</ linearGradient >
68
65
</ defs >
69
66
</ svg >
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export function DubCraftedShield(props: SVGProps<SVGSVGElement>) {
50
50
filterUnits = "userSpaceOnUse"
51
51
colorInterpolationFilters = "sRGB"
52
52
>
53
- < feFlood flood-opacity = "0" result = "BackgroundImageFix" />
53
+ < feFlood floodOpacity = "0" result = "BackgroundImageFix" />
54
54
< feColorMatrix
55
55
in = "SourceAlpha"
56
56
type = "matrix"
You can’t perform that action at this time.
0 commit comments