mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
adding option for branding
This commit is contained in:
18
packages/web/src/components/BrandingHelmet.tsx
Normal file
18
packages/web/src/components/BrandingHelmet.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
"use client"
|
||||
|
||||
import { useThemeStore } from "@rahoot/web/stores/theme"
|
||||
import { useEffect } from "react"
|
||||
|
||||
const BrandingHelmet = () => {
|
||||
const { brandName } = useThemeStore()
|
||||
|
||||
useEffect(() => {
|
||||
if (brandName) {
|
||||
document.title = brandName
|
||||
}
|
||||
}, [brandName])
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
export default BrandingHelmet
|
||||
Reference in New Issue
Block a user