feat(SW-508): Added hotel alerts
This commit is contained in:
@@ -8,8 +8,8 @@ import type { SidepeekContent } from "@/types/trpc/routers/contentstack/siteConf
|
||||
export interface AlertProps extends VariantProps<typeof alertVariants> {
|
||||
className?: string
|
||||
type: AlertTypeEnum
|
||||
heading?: string
|
||||
text: string
|
||||
heading?: string | null
|
||||
text?: string | null
|
||||
phoneContact?: {
|
||||
displayText: string
|
||||
phoneNumber?: string
|
||||
|
||||
@@ -27,6 +27,10 @@ export default function Alert({
|
||||
})
|
||||
const Icon = getIconByAlertType(type)
|
||||
|
||||
if (!text && !heading) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<section className={classNames}>
|
||||
<div className={styles.content}>
|
||||
|
||||
Reference in New Issue
Block a user