Skip to content

Commit 0ae974f

Browse files
CGQAQclaude
andcommitted
feat(use-cases): hide Shadcn UI quick start card in production
Add hidden config to QuickStartItem and set it for Shadcn UI since shadcn routes are only available in dev mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 82edfbf commit 0ae974f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

use_cases/src/pages/HomePage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ type QuickStartItem = {
125125
to: string;
126126
icon: LucideIcons;
127127
gradient: string;
128+
hidden?: boolean;
128129
};
129130

130131
const quickStart: QuickStartItem[] = [
@@ -148,6 +149,7 @@ const quickStart: QuickStartItem[] = [
148149
to: '/shadcn-showcase',
149150
icon: LucideIcons.box,
150151
gradient: 'linear-gradient(135deg, #8b5cf6, #ec4899)',
152+
hidden: !import.meta.env.DEV,
151153
}
152154
];
153155

@@ -358,7 +360,7 @@ export const HomePage: React.FC = () => {
358360
gap: '10px',
359361
overflowX: 'auto' as const,
360362
}}>
361-
{quickStart.map((qs) => (
363+
{quickStart.filter((qs) => !qs.hidden).map((qs) => (
362364
<QuickStartCard key={qs.to} item={qs} />
363365
))}
364366
</div>

0 commit comments

Comments
 (0)