mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-30 15:41:51 +00:00
Moved logic to mark selected server to parent component in order to affect all children compo0nents on the same route
This commit is contained in:
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
|
||||
import Paginator from './Paginator';
|
||||
import SearchBar from './SearchBar';
|
||||
import ShortUrlsList from './ShortUrlsList';
|
||||
import { assoc } from 'ramda';
|
||||
|
||||
export function ShortUrls(props) {
|
||||
const { match: { params } } = props;
|
||||
@@ -18,7 +19,4 @@ export function ShortUrls(props) {
|
||||
);
|
||||
}
|
||||
|
||||
export default connect(state => ({
|
||||
shortUrlsList: state.shortUrlsList.shortUrls,
|
||||
loading: state.shortUrlsList.loading,
|
||||
}))(ShortUrls);
|
||||
export default connect(state => assoc('shortUrlsList', state.shortUrlsList.shortUrls, state.shortUrlsList))(ShortUrls);
|
||||
|
||||
Reference in New Issue
Block a user