
* added CSS variable --brand-color * added CustomBranding component * prisma update for brand color * added brandcolor to user context in viewer.me * conflict resolution * added brandColor input and mutation * custom brand color to availability * brandColor added to BookingPage * fixed availability, booking for team and added customBranding to success * brandColor added to cancel/uid * requested changes * lint fix * further changes * lint fix
10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
import { useEffect } from "react";
|
|
|
|
const BrandColor = ({ val = "#292929" }: { val: string | undefined | null }) => {
|
|
useEffect(() => {
|
|
document.documentElement.style.setProperty("--brand-color", val);
|
|
}, [val]);
|
|
return null;
|
|
};
|
|
|
|
export default BrandColor;
|