mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-23 12:38:21 -05:00
9bbd993dfb
This revision introduces a new environment variable `IDP_LOGIN_BACKGROUND_URL` that overrides the default background image of the IDP login page when present.
25 lines
508 B
TypeScript
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
|
|
);
|