Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track welcome modal changes #7183

Merged
merged 10 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add bootcamp landing path
  • Loading branch information
dem4ron committed Dec 4, 2024
commit 8e1623dcbb9c2bdaecee2db78b72fbb3e75d9710
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React, { useContext } from 'react'
import { TrackContext } from '../TrackWelcomeModal'

export function BootcampRecommendationView() {
const { hideBootcampRecommendationView, track } = useContext(TrackContext)
const { hideBootcampRecommendationView, track, links } =
useContext(TrackContext)
return (
<>
<h4 className="text-h4">You might find the Bootcamp is a better fit</h4>
Expand All @@ -19,7 +20,9 @@ export function BootcampRecommendationView() {
</p>

<div className="grid grid-cols-2 gap-12 items-center">
<a className="btn-m btn-primary">Go to bootcamp</a>
<a href={links.bootcampLanding} className="btn-m btn-primary">
Go to bootcamp
</a>
<button
onClick={hideBootcampRecommendationView}
className="btn-m btn-secondary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export type TrackWelcomeModalLinks = Record<
| 'editHelloWorld'
| 'cliWalkthrough'
| 'trackTooling'
| 'learningResources',
| 'learningResources'
| 'bootcampLanding',
string
>

Expand Down