import React from 'react';
import { withRouter } from 'react-router';
import Reflux from 'reflux';

import Store from './ChannelHistoryStore';

import ChannelHistory from './ChannelHistory';

const ChannelHistoryMessages = React.createClass({
  mixins: [Reflux.connect(Store)],

  render() {
    const { channelName } = this.props;

    return <ChannelHistory channelName={channelName} />;
  }
});

export default withRouter(ChannelHistoryMessages);

import React from 'react';
import { withRouter } from 'react-router';
import Reflux from 'reflux';

import Store from './ChannelHistoryStore';

import ChannelHistory from './ChannelHistory';

const ChannelHistoryMessages = React.createClass({
  mixins: [Reflux.connect(Store)],

  render() {
    const { channelName } = this.props.params;

    return <ChannelHistory channelName={channelName} />;
  }
});

export default withRouter(ChannelHistoryMessages);

Fix fetching channel history messages
[DASH-2187] Fix fetching channel history messages
