Skip to content

Commit 80d1f9c

Browse files
committed
fix: declare use-cases CardGrid at layout level
1 parent 7317e44 commit 80d1f9c

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

public/content/ai-agents/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In contrast, Ethereum's decentralized ecosystem offers several key advantages:
3939

4040
These factors transform AI agents from simple bots into dynamic, self-improving systems that offer significant value across multiple sectors:
4141

42-
<CardGrid className="grid grid-cols-[repeat(auto-fill,_minmax(min(100%,_280px),_1fr))] gap-8">
42+
<CardGrid>
4343
<Card title="Automated DeFi" emoji=":money_with_wings:" description="AI agents keep a close eye on market trends, execute trades, and manage portfolios — making the complex world of DeFi a lot more approachable."/>
4444
<Card title="New AI agent economy" emoji="🌎" description="AI agents can hire other agents (or humans) with different skills to perform specialized tasks for them." />
4545
<Card title="Risk management" emoji="🛠️" description="By monitoring transactional activities, AI agents can help spot scams and safeguard your digital assets better and faster." />

public/content/payments/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This isn't a far-off dream – it's happening today on Ethereum. While tradition
2727

2828
For millions of people working abroad, sending money back home is a regular necessity. Traditional remittance services often come with high fees and slow processing times. Ethereum offers a compelling alternative.
2929

30-
<CardGrid className="grid grid-cols-[repeat(auto-fill,_minmax(min(100%,_280px),_1fr))] gap-8">
30+
<CardGrid>
3131
<Card title="Cheaper Fees" emoji=":money_with_wings:" description="Remittance services charge up to $14 fees on average. Ethereum transactions can often be completed under $0.01."/>
3232
<Card title="Faster Transfers" emoji="📶" description="International wire transfers take several days to process. Ethereum transactions are settled in minutes." />
3333
<Card title="Open to anyone" emoji="🌎" description="You only need an internet connection and a wallet app to send or receive Ether." />

public/content/prediction-markets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In theory, because bettors stand to profit from being correct, prediction market
3030

3131
Unlike traditional forecasting, blockchain-based prediction markets are:
3232

33-
<CardGrid className="grid grid-cols-[repeat(auto-fill,_minmax(min(100%,_280px),_1fr))] gap-8">
33+
<CardGrid>
3434
<Card title="Incentivized" emoji=":money_with_wings:" description="Participants stake real funds, which infers high-quality predictions."/>
3535
<Card title="Decentralization" emoji="🌎" description="Using blockchain and smart contracts ensures transparent and automated payouts." />
3636
<Card title="Market driven odds" emoji="🤝" description="Prices are set by traders buying and selling outcome shares, rather than preset by a centralized bookmaker." />

src/layouts/md/UseCases.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,16 @@ import { ContentLayout } from "../ContentLayout"
1818

1919
import { useTranslation } from "@/hooks/useTranslation"
2020

21+
const CardGrid = (props: ChildOnlyProp) => (
22+
<div
23+
className="grid grid-cols-[repeat(auto-fill,_minmax(min(100%,_280px),_1fr))] gap-8"
24+
{...props}
25+
/>
26+
)
27+
2128
// UseCases layout components
2229
export const useCasesComponents = {
30+
CardGrid,
2331
AiAgentProductLists,
2432
BuildYourOwnAIAgent,
2533
PredictionMarketLists,

0 commit comments

Comments
 (0)