feat/BOOK-755 alert content pages
* feat(BOOK-755): Added alert block on Collection pages * feat(BOOK-755): Added alert block on Content pages * feat(BOOK-755): Added alert functionality for RTE Approved-by: Bianca Widstam
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
mapImageVaultAssetResponseToImageVaultAsset,
|
||||
mapInsertResponseToImageVaultAsset,
|
||||
} from "@scandic-hotels/common/utils/imageVault"
|
||||
import { Alert } from "../Alert"
|
||||
import { TextLink } from "../TextLink"
|
||||
import type { EmbedByUid } from "./JsonToHtml"
|
||||
import type { Attributes } from "./types/rte/attrs"
|
||||
@@ -458,6 +459,8 @@ export const renderOptions: RenderOptions = {
|
||||
)
|
||||
}
|
||||
return null
|
||||
} else if (entry?.node.__typename === "Alert") {
|
||||
return <Alert key={node.uid} {...entry.node} />
|
||||
} else if (
|
||||
entry?.node.__typename === "AccountPage" ||
|
||||
entry?.node.__typename === "CampaignOverviewPage" ||
|
||||
|
||||
Reference in New Issue
Block a user