Insert custom CSS styles into layout. Closes #1972

This commit is contained in:
Gabe Kangas 2022-06-24 21:42:42 -07:00
parent e08037b64a
commit f4de7ed31f
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -14,7 +14,7 @@ import FatalErrorStateModal from '../modals/FatalErrorModal';
function Main() {
const clientConfig = useRecoilValue<ClientConfig>(clientConfigStateAtom);
const { name, title } = clientConfig;
const { name, title, customStyles } = clientConfig;
const isChatAvailable = useRecoilValue<boolean>(isChatAvailableSelector);
const fatalError = useRecoilValue<DisplayableError>(fatalErrorStateAtom);
@ -75,6 +75,8 @@ function Main() {
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png" />
<meta name="theme-color" content="#ffffff" />
<style>{customStyles}</style>
</Head>
<ClientConfigStore />