Skip to content

Commit d53f625

Browse files
committed
Quick misc. fixes
1 parent 047fc72 commit d53f625

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

Diff for: apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/featured-integrations.tsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ export function FeaturedIntegrationsLoader() {
172172
<div>
173173
<div className="overflow-hidden">
174174
<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">
177177
<div className="border border-transparent">
178178
<div className="aspect-[900/580] animate-pulse rounded-lg bg-neutral-200" />
179179
</div>
@@ -182,8 +182,11 @@ export function FeaturedIntegrationsLoader() {
182182
</div>
183183
</div>
184184
<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+
/>
187190
))}
188191
</div>
189192
</div>

Diff for: apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/integrations-cards.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const PRESENCE_ANIMATION = {
2828
transition: { duration: 0.1 },
2929
};
3030

31-
export async function IntegrationsCards({
31+
export function IntegrationsCards({
3232
integrations,
3333
}: {
3434
integrations: IntegrationsWithInstallations;

Diff for: packages/ui/src/icons/card-discover.tsx

+11-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import { SVGProps } from "react";
1+
import { SVGProps, useId } from "react";
22

33
export function CardDiscover(props: SVGProps<SVGSVGElement>) {
4+
const id = useId();
5+
46
return (
57
<svg
68
xmlns="http://www.w3.org/2000/svg"
@@ -10,25 +12,20 @@ export function CardDiscover(props: SVGProps<SVGSVGElement>) {
1012
viewBox="0 0 22 22"
1113
{...props}
1214
>
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)`} />
2017
</g>
2118
<defs>
2219
<filter
23-
id="filter0_i_3233_2334"
20+
id={`${id}-filter`}
2421
x="0.885498"
2522
y="0.885483"
2623
width="22.229"
2724
height="22.229"
2825
filterUnits="userSpaceOnUse"
29-
color-interpolation-filters="sRGB"
26+
colorInterpolationFilters="sRGB"
3027
>
31-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
28+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
3229
<feBlend
3330
mode="normal"
3431
in="SourceGraphic"
@@ -55,15 +52,15 @@ export function CardDiscover(props: SVGProps<SVGSVGElement>) {
5552
/>
5653
</filter>
5754
<linearGradient
58-
id="paint0_linear_3233_2334"
55+
id={`${id}-gradient`}
5956
x1="0.885498"
6057
y1="0.885483"
6158
x2="21.1145"
6259
y2="21.1145"
6360
gradientUnits="userSpaceOnUse"
6461
>
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" />
6764
</linearGradient>
6865
</defs>
6966
</svg>

Diff for: packages/ui/src/icons/dub-crafted-shield.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function DubCraftedShield(props: SVGProps<SVGSVGElement>) {
5050
filterUnits="userSpaceOnUse"
5151
colorInterpolationFilters="sRGB"
5252
>
53-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
53+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
5454
<feColorMatrix
5555
in="SourceAlpha"
5656
type="matrix"

0 commit comments

Comments
 (0)