Files
opencloud/services/idp/src/index.tsx
T
Brandon Richardson 9bbd993dfb feat(idp): support login page background configuration
This revision introduces a new environment variable
`IDP_LOGIN_BACKGROUND_URL` that overrides the default background image
of the IDP login page when present.
2024-01-05 11:27:25 -04:00

25 lines
508 B
TypeScript

import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import './i18n';
import App from './App';
import store from './store';
import './app.css';
const root = document.getElementById('root')
// if a custom background image has been configured, make use of it
const bgImg = root.getAttribute('data-bg-img')
ReactDOM.render(
<React.StrictMode>
<Provider store={store as any}>
<App bgImg={bgImg}/>
</Provider>
</React.StrictMode>,
root
);