mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-16 12:33:48 +00:00
Connected creation form with redux, and created reducer for short URL creation
This commit is contained in:
@@ -4,6 +4,7 @@ import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { updateShortUrlsList } from './reducers/shortUrlsList';
|
||||
import './SearchBar.scss';
|
||||
import { pick } from 'ramda';
|
||||
|
||||
export class SearchBar extends React.Component {
|
||||
state = {
|
||||
@@ -52,6 +53,4 @@ export class SearchBar extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(state => (
|
||||
{ shortUrlsListParams: state.shortUrlsListParams }
|
||||
), { updateShortUrlsList })(SearchBar);
|
||||
export default connect(pick(['shortUrlsListParams']), { updateShortUrlsList })(SearchBar);
|
||||
|
||||
Reference in New Issue
Block a user