Skip to content

Commit

Permalink
Merge pull request #1979 from dubinc/misc-fixes
Browse files Browse the repository at this point in the history
Quick misc. fixes
  • Loading branch information
steven-tey authored Feb 5, 2025
2 parents 047fc72 + d53f625 commit 46e434c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ export function FeaturedIntegrationsLoader() {
<div>
<div className="overflow-hidden">
<div className="-ml-4 flex -translate-x-1/2">
{[...Array(3)].map(() => (
<div className="min-w-0 shrink-0 grow-0 basis-2/3 pl-4">
{[...Array(3)].map((_, idx) => (
<div key={idx} className="min-w-0 shrink-0 grow-0 basis-2/3 pl-4">
<div className="border border-transparent">
<div className="aspect-[900/580] animate-pulse rounded-lg bg-neutral-200" />
</div>
Expand All @@ -182,8 +182,11 @@ export function FeaturedIntegrationsLoader() {
</div>
</div>
<div className="mt-6 flex items-center justify-center gap-4 pb-1">
{[...Array(4)].map(() => (
<div className="size-8 animate-pulse rounded-lg bg-neutral-200" />
{[...Array(4)].map((_, idx) => (
<div
key={idx}
className="size-8 animate-pulse rounded-lg bg-neutral-200"
/>
))}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const PRESENCE_ANIMATION = {
transition: { duration: 0.1 },
};

export async function IntegrationsCards({
export function IntegrationsCards({
integrations,
}: {
integrations: IntegrationsWithInstallations;
Expand Down
25 changes: 11 additions & 14 deletions packages/ui/src/icons/card-discover.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { SVGProps } from "react";
import { SVGProps, useId } from "react";

export function CardDiscover(props: SVGProps<SVGSVGElement>) {
const id = useId();

return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -10,25 +12,20 @@ export function CardDiscover(props: SVGProps<SVGSVGElement>) {
viewBox="0 0 22 22"
{...props}
>
<g filter="url(#filter0_i_3233_2334)">
<circle
cx="11"
cy="11"
r="10.1145"
fill="url(#paint0_linear_3233_2334)"
/>
<g filter={`url(#${id}-filter)`}>
<circle cx="11" cy="11" r="10.1145" fill={`url(#${id}-gradient)`} />
</g>
<defs>
<filter
id="filter0_i_3233_2334"
id={`${id}-filter`}
x="0.885498"
y="0.885483"
width="22.229"
height="22.229"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
colorInterpolationFilters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feFlood floodOpacity="0" result="BackgroundImageFix" />
<feBlend
mode="normal"
in="SourceGraphic"
Expand All @@ -55,15 +52,15 @@ export function CardDiscover(props: SVGProps<SVGSVGElement>) {
/>
</filter>
<linearGradient
id="paint0_linear_3233_2334"
id={`${id}-gradient`}
x1="0.885498"
y1="0.885483"
x2="21.1145"
y2="21.1145"
gradientUnits="userSpaceOnUse"
>
<stop offset="0.28" stop-color="#E0481E" />
<stop offset="0.765" stop-color="#F59214" />
<stop offset="0.28" stopColor="#E0481E" />
<stop offset="0.765" stopColor="#F59214" />
</linearGradient>
</defs>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/icons/dub-crafted-shield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function DubCraftedShield(props: SVGProps<SVGSVGElement>) {
filterUnits="userSpaceOnUse"
colorInterpolationFilters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
Expand Down

0 comments on commit 46e434c

Please sign in to comment.