Commit e270e2cc authored by Matija Obreza's avatar Matija Obreza

Fix: Home icon must point to the backend server

parent e2536067
Pipeline #7157 passed with stages
in 7 minutes and 52 seconds
import * as React from 'react';
import { connect } from 'react-redux';
import { withStyles} from '@material-ui/core/styles';
import { translate } from 'react-i18next';
......@@ -121,4 +122,9 @@ class LeftMenu extends React.Component<ILeftMenuProps, any> {
}
}
export default translate()((withStyles as any)(styleSheet)(LeftMenu));
const mapStateToProps = (state) => ({
baseUrl: state.applicationConfig.apiUrl,
});
export default connect(mapStateToProps)(translate()((withStyles as any)(styleSheet)(LeftMenu)));
import * as React from 'react';
import { connect } from 'react-redux';
import {bindActionCreators} from 'redux';
import { bindActionCreators } from 'redux';
import { NavLink, Link, withRouter } from 'react-router-dom';
import { translate } from 'react-i18next';
......@@ -193,6 +193,7 @@ class Header extends React.Component<IHeaderProps | any, any> {
const mapStateToProps = (state) => ({
login: state.login,
baseUrl: state.applicationConfig.apiUrl,
});
const mapDispatchToProps = (dispatch) => bindActionCreators({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment