Skip to content

Commit 1873c77

Browse files
committed
fix: use dynamic workshop display name in onboarding welcome message
1 parent 5a02d59 commit 1873c77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/workshop-app/app/routes/onboarding.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
} from '#app/components/epic-video.tsx'
2626
import { SimpleTooltip } from '#app/components/ui/tooltip.tsx'
2727
import { cn } from '#app/utils/misc.tsx'
28+
import { useWorkshopConfig } from '#app/components/workshop-config.tsx'
2829

2930
export const handle: SEOHandle = {
3031
getSitemapEntries: () => null,
@@ -84,14 +85,17 @@ export async function action({ request }: ActionFunctionArgs) {
8485

8586
export default function Onboarding() {
8687
const data = useLoaderData<typeof loader>()
88+
const workshopConfig = useWorkshopConfig()
8789
const { onboardingVideos, watchedVideos, allWatched, isAuthenticated } = data
8890
const videosCount = onboardingVideos.length
8991

9092
return (
9193
<main className="flex w-full flex-col items-center justify-between gap-4 overflow-y-scroll scrollbar-thin scrollbar-thumb-scrollbar">
9294
<div className="container flex h-full w-full max-w-5xl flex-1 flex-col items-center gap-4 py-12">
9395
<h1 className="text-5xl">Onboarding</h1>
94-
<p className="text-xl">Welcome to EpicWeb.dev!</p>
96+
<p className="text-xl">
97+
Welcome to {workshopConfig.product.displayName}!
98+
</p>
9599
<p className="text-lg">
96100
Before you get started,{' '}
97101
<strong>

0 commit comments

Comments
 (0)