diff --git a/src/containers/main/SidebarRouter/index.tsx b/src/containers/main/SidebarRouter/index.tsx new file mode 100644 index 00000000..72e45d1f --- /dev/null +++ b/src/containers/main/SidebarRouter/index.tsx @@ -0,0 +1,15 @@ +import React, { FC } from 'react'; +import { Route, Switch } from 'react-router'; +import { TagSidebar } from '~/containers/sidebars/TagSidebar'; + +interface IProps { + prefix?: string; +} + +const SidebarRouter: FC = ({ prefix = '' }) => ( + + + +); + +export { SidebarRouter }; diff --git a/src/containers/node/NodeLayout/index.tsx b/src/containers/node/NodeLayout/index.tsx index 1e6d7ec0..16d28c65 100644 --- a/src/containers/node/NodeLayout/index.tsx +++ b/src/containers/node/NodeLayout/index.tsx @@ -31,6 +31,7 @@ import * as NODE_ACTIONS from '~/redux/node/actions'; import * as MODAL_ACTIONS from '~/redux/modal/actions'; import { IState } from '~/redux/store'; import { selectModal } from '~/redux/modal/selectors'; +import { SidebarRouter } from '~/containers/main/SidebarRouter'; const mapStateToProps = (state: IState) => ({ node: selectNode(state), @@ -231,6 +232,8 @@ const NodeLayoutUnconnected: FC = memo(