Timeline should be a feature, not component

This commit is contained in:
kibigo! 2017-06-24 17:10:55 -07:00
parent ff0ecca84c
commit 4d0fde3d93
5 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,7 @@ import {
} from '../../actions/timelines';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ColumnSettingsContainer from './containers/column_settings_container';
import Timeline from '../../components/timeline';
import Timeline from '../timeline';
const messages = defineMessages({
title: { id: 'column.community', defaultMessage: 'Local timeline' },

View File

@ -5,7 +5,7 @@ import {
expandHashtagTimeline,
} from '../../actions/timelines';
import { FormattedMessage } from 'react-intl';
import Timeline from '../../components/timeline';
import Timeline from '../timeline';
export default class HashtagTimeline extends React.PureComponent {

View File

@ -4,7 +4,7 @@ import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ColumnSettingsContainer from './containers/column_settings_container';
import Timeline from '../../components/timeline';
import Timeline from '../timeline';
import Link from 'react-router-dom/Link';
const messages = defineMessages({

View File

@ -6,7 +6,7 @@ import {
} from '../../actions/timelines';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ColumnSettingsContainer from './containers/column_settings_container';
import Timeline from '../../components/timeline';
import Timeline from '../timeline';
const messages = defineMessages({
title: { id: 'column.public', defaultMessage: 'Federated timeline' },

View File

@ -1,17 +1,17 @@
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../features/ui/containers/status_list_container';
import Column from './column';
import ColumnHeader from './column_header';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
updateTimeline,
deleteFromTimelines,
connectTimeline,
disconnectTimeline,
} from '../actions/timelines';
import { addColumn, removeColumn, moveColumn } from '../actions/columns';
import createStream from '../stream';
} from '../../actions/timelines';
import { addColumn, removeColumn, moveColumn } from '../../actions/columns';
import createStream from '../../stream';
const mapStateToProps = (state, ownprops) => ({
streamingAPIBaseURL: state.getIn(['meta', 'streaming_api_base_url']),