import { FormattedMessage } from 'react-intl';
-const LoadingIndicator = () => {
- const style = {
- textAlign: 'center',
- fontSize: '16px',
- fontWeight: '500',
- color: '#616b86',
- paddingTop: '120px'
- };
-
- return <div style={style}><FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /></div>;
+const style = {
+ textAlign: 'center',
+ fontSize: '16px',
+ fontWeight: '500',
+ color: '#616b86',
+ paddingTop: '120px'
};
+const LoadingIndicator = () => (
+ <div style={style}>
+ <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
+ </div>
+);
+
export default LoadingIndicator;
--- /dev/null
+import { FormattedMessage } from 'react-intl';
+
+const style = {
+ textAlign: 'center',
+ fontSize: '16px',
+ fontWeight: '500',
+ color: '#616b86',
+ paddingTop: '120px'
+};
+
+const MissingIndicator = () => (
+ <div style={style}>
+ <FormattedMessage id='missing_indicator.label' defaultMessage='Not found' />
+ </div>
+);
+
+export default MissingIndicator;
import HashtagTimeline from '../features/hashtag_timeline';
import Notifications from '../features/notifications';
import FollowRequests from '../features/follow_requests';
+import GenericNotFound from '../features/generic_not_found';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import de from 'react-intl/locale-data/de';
</Route>
<Route path='follow_requests' component={FollowRequests} />
+ <Route path='*' component={GenericNotFound} />
</Route>
</Router>
</Provider>
--- /dev/null
+import Column from '../ui/components/column';
+import MissingIndicator from '../../components/missing_indicator';
+
+const GenericNotFound = () => (
+ <Column>
+ <MissingIndicator />
+ </Column>
+);
+
+export default GenericNotFound;
dispatch: React.PropTypes.func.isRequired,
status: ImmutablePropTypes.map,
ancestorsIds: ImmutablePropTypes.list,
- descendantsIds: ImmutablePropTypes.list
+ descendantsIds: ImmutablePropTypes.list,
+ me: React.PropTypes.number
},
mixins: [PureRenderMixin],
handleMentionClick (account) {
this.props.dispatch(mentionCompose(account));
+
if (isMobile(window.innerWidth)) {
this.context.router.push('/statuses/new');
}