2022-07-18 10:47:54 +02:00
|
|
|
import * as React from 'react';
|
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
import { Store } from 'redux';
|
|
|
|
|
|
|
|
|
|
import GeneralSiteSettings from '../../../containers/GeneralSiteSettings';
|
|
|
|
|
import createStoreHelper from '../../../helpers/createStore';
|
2023-02-05 11:55:38 +01:00
|
|
|
import IBoardJSON from '../../../interfaces/json/IBoard';
|
2022-07-18 10:47:54 +02:00
|
|
|
import { State } from '../../../reducers/rootReducer';
|
2022-07-22 16:50:36 +02:00
|
|
|
import { ISiteSettingsGeneralForm } from './GeneralSiteSettingsP';
|
2022-07-18 10:47:54 +02:00
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
originForm: ISiteSettingsGeneralForm;
|
2025-01-22 09:55:36 +01:00
|
|
|
siteLogoUrl?: string;
|
2025-01-22 14:04:08 +01:00
|
|
|
siteFaviconUrl?: string;
|
2023-02-05 11:55:38 +01:00
|
|
|
boards: IBoardJSON[];
|
2024-03-28 12:29:54 +01:00
|
|
|
isMultiTenant: boolean;
|
2022-07-18 10:47:54 +02:00
|
|
|
authenticityToken: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class GeneralSiteSettingsRoot extends React.Component<Props> {
|
|
|
|
|
store: Store<State, any>;
|
|
|
|
|
|
|
|
|
|
constructor(props: Props) {
|
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
|
|
this.store = createStoreHelper();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<Provider store={this.store}>
|
|
|
|
|
<GeneralSiteSettings
|
|
|
|
|
originForm={this.props.originForm}
|
2025-01-22 09:55:36 +01:00
|
|
|
siteLogoUrl={this.props.siteLogoUrl}
|
2025-01-22 14:04:08 +01:00
|
|
|
siteFaviconUrl={this.props.siteFaviconUrl}
|
2023-02-05 11:55:38 +01:00
|
|
|
boards={this.props.boards}
|
2024-03-28 12:29:54 +01:00
|
|
|
isMultiTenant={this.props.isMultiTenant}
|
2022-07-18 10:47:54 +02:00
|
|
|
authenticityToken={this.props.authenticityToken}
|
|
|
|
|
/>
|
|
|
|
|
</Provider>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default GeneralSiteSettingsRoot;
|