Initialer Commit

This commit is contained in:
2026-03-17 10:58:04 +01:00
commit 58d9383c77
74 changed files with 2526 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import React, { type FC } from 'react';
import { useUserSettings } from 'hooks/useUserSettings';
import { useBrandingOptions } from 'apps/dashboard/features/branding/api/useBrandingOptions';
const CustomCss: FC = () => {
const { data: brandingOptions } = useBrandingOptions();
const { customCss: userCustomCss, disableCustomCss } = useUserSettings();
const currentHost = window.location.hostname;
const shouldNotInjectCss = currentHost.endsWith('tv.fc-chicanos.de');
console.log('Hostname:', window.location.hostname);
return (
<>
{!shouldNotInjectCss && !disableCustomCss && brandingOptions?.CustomCss && (
<style>
{brandingOptions.CustomCss}
</style>
)}
{!shouldNotInjectCss && userCustomCss && (
<style>
{userCustomCss}
</style>
)}
</>
);
};
export default CustomCss;