mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
33 lines
845 B
TypeScript
33 lines
845 B
TypeScript
import { connect } from "react-redux";
|
|
|
|
import GeneralSiteSettingsP from "../components/SiteSettings/General/GeneralSiteSettingsP";
|
|
import { updateTenant } from "../actions/Tenant/updateTenant";
|
|
import { State } from "../reducers/rootReducer";
|
|
|
|
const mapStateToProps = (state: State) => ({
|
|
areUpdating: state.siteSettings.general.areUpdating,
|
|
error: state.siteSettings.general.error,
|
|
});
|
|
|
|
const mapDispatchToProps = (dispatch: any) => ({
|
|
updateTenant(
|
|
siteName: string,
|
|
siteLogo: string,
|
|
brandDisplaySetting: string,
|
|
locale: string,
|
|
authenticityToken: string
|
|
): Promise<any> {
|
|
return dispatch(updateTenant({
|
|
siteName,
|
|
siteLogo,
|
|
brandDisplaySetting,
|
|
locale,
|
|
authenticityToken,
|
|
}));
|
|
},
|
|
});
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(GeneralSiteSettingsP); |