Wrap SideBar in router (styled-component + old react-router) (#754)

This commit is contained in:
Jaco Greeff 2019-02-22 17:56:57 +01:00 committed by GitHub
parent e6eb18de97
commit 8ba8e1820b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,9 @@ import { I18nProps } from '@polkadot/ui-app/types';
import './SideBar.css';
import React from 'react';
import { withRouter } from 'react-router';
import store from 'store';
import { withMulti } from '@polkadot/ui-api/index';
import { Button, Icon, Menu } from '@polkadot/ui-app/index';
import routing from '../routing';
@ -148,4 +150,8 @@ class SideBar extends React.PureComponent<Props, State> {
}
}
export default translate(SideBar);
export default withMulti(
SideBar,
translate,
withRouter
);