* fixing a couple issue with the sublanding - nulls and page.type * learning track null error fix Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
17 lines
507 B
TypeScript
17 lines
507 B
TypeScript
import { useProductSubLandingContext } from 'components/context/ProductSubLandingContext'
|
|
import { LearningTrack } from 'components/sublanding/LearningTrack'
|
|
|
|
export const LearningTracks = () => {
|
|
const { learningTracks } = useProductSubLandingContext()
|
|
|
|
return (
|
|
<div>
|
|
<div className="d-flex flex-wrap flex-items-start my-5 gutter">
|
|
{(learningTracks || []).map((track) => {
|
|
return <LearningTrack key={track?.title} track={track} />
|
|
})}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|