Skip to content

Commit e350c07

Browse files
committed
build fix
1 parent 7c14cb6 commit e350c07

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

apps/developer-hub/content/docs/express-relay/index.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ To learn more about Express Relay, refer to the following resources:
5757
description="Understand the mechanics behind Express Relay's priority auction system"
5858
icon={
5959
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
60-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
60+
<path
61+
strokeLinecap="round"
62+
strokeLinejoin="round"
63+
strokeWidth={2}
64+
d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
65+
/>
6166
</svg>
6267
}
6368
/>

apps/developer-hub/src/components/IntegrationCard/index.tsx

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,52 @@
1-
interface IntegrationCardProps {
1+
type IntegrationCardProps = {
22
href: string;
33
icon: React.ReactNode;
44
title: string;
55
description: string;
6-
colorScheme?: 'blue' | 'green' | 'purple';
7-
}
6+
colorScheme?: "blue" | "green" | "purple";
7+
};
88

9-
export const IntegrationCard = ({
10-
href,
11-
icon,
12-
title,
13-
description,
14-
colorScheme = 'blue'
9+
export const IntegrationCard = ({
10+
href,
11+
icon,
12+
title,
13+
description,
14+
colorScheme = "blue",
1515
}: IntegrationCardProps) => {
1616
const colorClasses = {
1717
blue: {
18-
bg: 'bg-blue-100 dark:bg-blue-900',
19-
text: 'text-blue-600 dark:text-blue-400',
20-
hoverText: 'group-hover:text-blue-600 dark:group-hover:text-blue-400'
18+
bg: "bg-blue-100 dark:bg-blue-900",
19+
text: "text-blue-600 dark:text-blue-400",
20+
hoverText: "group-hover:text-blue-600 dark:group-hover:text-blue-400",
2121
},
2222
green: {
23-
bg: 'bg-green-100 dark:bg-green-900',
24-
text: 'text-green-600 dark:text-green-400',
25-
hoverText: 'group-hover:text-green-600 dark:group-hover:text-green-400'
23+
bg: "bg-green-100 dark:bg-green-900",
24+
text: "text-green-600 dark:text-green-400",
25+
hoverText: "group-hover:text-green-600 dark:group-hover:text-green-400",
2626
},
2727
purple: {
28-
bg: 'bg-purple-100 dark:bg-purple-900',
29-
text: 'text-purple-600 dark:text-purple-400',
30-
hoverText: 'group-hover:text-purple-600 dark:group-hover:text-purple-400'
31-
}
28+
bg: "bg-purple-100 dark:bg-purple-900",
29+
text: "text-purple-600 dark:text-purple-400",
30+
hoverText: "group-hover:text-purple-600 dark:group-hover:text-purple-400",
31+
},
3232
};
3333

3434
const colors = colorClasses[colorScheme];
3535

3636
return (
37-
<a
38-
href={href}
37+
<a
38+
href={href}
3939
className="block group bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-lg p-6 hover:border-gray-300 dark:hover:border-gray-600 transition-colors"
4040
>
4141
<div className="flex items-center gap-3 mb-3">
42-
<div className={`w-8 h-8 rounded-lg ${colors.bg} flex items-center justify-center`}>
43-
<div className={`w-4 h-4 ${colors.text}`}>
44-
{icon}
45-
</div>
42+
<div
43+
className={`w-8 h-8 rounded-lg ${colors.bg} flex items-center justify-center`}
44+
>
45+
<div className={`w-4 h-4 ${colors.text}`}>{icon}</div>
4646
</div>
47-
<h3 className={`text-lg font-semibold text-gray-900 dark:text-white ${colors.hoverText}`}>
47+
<h3
48+
className={`text-lg font-semibold text-gray-900 dark:text-white ${colors.hoverText}`}
49+
>
4850
{title}
4951
</h3>
5052
</div>

apps/developer-hub/src/mdx-components.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { InfoBox } from "@pythnetwork/component-library/InfoBox";
22
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
33
import defaultMdxComponents from "fumadocs-ui/mdx";
44
import type { MDXComponents } from "mdx/types";
5+
56
import { IntegrationCard } from "./components/IntegrationCard";
67

78
export function getMDXComponents(components?: MDXComponents): MDXComponents {

0 commit comments

Comments
 (0)