mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-31 01:26:16 +00:00
Connected creation form with redux, and created reducer for short URL creation
This commit is contained in:
@@ -5,6 +5,7 @@ import { selectServer } from '../servers/reducers/selectedServer';
|
||||
import CreateShortUrl from '../short-urls/CreateShortUrl';
|
||||
import ShortUrls from '../short-urls/ShortUrls';
|
||||
import AsideMenu from './AsideMenu';
|
||||
import { pick } from 'ramda';
|
||||
|
||||
export class MenuLayout extends React.Component {
|
||||
componentDidMount() {
|
||||
@@ -35,7 +36,4 @@ export class MenuLayout extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(state => ({
|
||||
selectedServer: state.selectedServer,
|
||||
shortUrlsListParams: state.shortUrlsListParams,
|
||||
}), { selectServer })(MenuLayout);
|
||||
export default connect(pick(['selectedServer', 'shortUrlsListParams']), { selectServer })(MenuLayout);
|
||||
|
||||
Reference in New Issue
Block a user