Merged in feat/LOY-430-reward-nights (pull request #3295)
Feat/LOY-430 reward nights * chore(LOY-430): add reward nights request and dynamic content * chore(LOY-430): fix Reward Night component * Refactor: use existing endpoint and add rewardNight data to that response instead Approved-by: Linus Flood
This commit is contained in:
@@ -28,6 +28,7 @@ import { SJWidget } from "@/components/SJWidget"
|
||||
import JobylonFeed from "./JobylonFeed"
|
||||
|
||||
import type { DynamicContentProps } from "@/types/components/blocks/dynamicContent"
|
||||
import { RewardNights } from "./RewardNights"
|
||||
|
||||
export default function DynamicContent(props: DynamicContentProps) {
|
||||
return (
|
||||
@@ -91,6 +92,8 @@ function DynamicContentBlocks(props: DynamicContentProps) {
|
||||
|
||||
case DynamicContentEnum.Blocks.components.sj_widget:
|
||||
return <SJWidget />
|
||||
case DynamicContentEnum.Blocks.components.reward_nights:
|
||||
return <RewardNights />
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user