Commit 670d6b7c authored by mgabdev's avatar mgabdev

Updated StatusList to show SignUpPanel at end of list if no user exists

• Updated:
- StatusList to show SignUpPanel at end of list if no user exists
parent 25297df3
......@@ -18,12 +18,15 @@ import {
scrollTopTimeline,
forceDequeueTimeline,
} from '../actions/timelines'
import { SignUpPanel } from '../features/ui/util/async_components'
import WrappedBundle from '../features/ui/util/wrapped_bundle'
import { showTimelineInjection } from '../actions/timeline_injections'
import { fetchStatus, fetchContext } from '../actions/statuses'
import StatusContainer from '../containers/status_container'
import StatusPlaceholder from './placeholder/status_placeholder'
import ScrollableList from './scrollable_list'
import Comment from './comment'
import Text from './text'
import TimelineQueueButtonHeader from './timeline_queue_button_header'
import TimelineInjectionBase from './timeline_injections/timeline_injection_base'
import TimelineInjectionRoot from './timeline_injections/timeline_injection_root'
......@@ -282,7 +285,7 @@ class StatusList extends ImmutablePureComponent {
)).concat(scrollableContent)
}
if (canShowEmptyContent) {
if (canShowEmptyContent && !!me) {
emptyContent = [
<TimelineInjectionRoot type={TIMELINE_INJECTION_USER_SUGGESTIONS} key='empty-injection-0' />,
<TimelineInjectionRoot type={TIMELINE_INJECTION_FEATURED_GROUPS} key='empty-injection-1' />,
......@@ -323,6 +326,15 @@ class StatusList extends ImmutablePureComponent {
{emptyContent}
</div>
}
{
!me &&
<div className={[_s.d, _s.w100PC, _s.mt5, _s.aiCenter].join(' ')}>
<Text className={_s.py15} color='tertiary'> </Text>
<div className={[_s.d, _s.w100PC].join(' ')}>
<WrappedBundle component={SignUpPanel} />
</div>
</div>
}
</React.Fragment>
)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment