Browse Source

Merge branch 'implement-ui' into restore-docker-configuration

develop
Apostolos Fanakis 4 years ago
parent
commit
0d2345d2a4
  1. 3
      packages/concordia-app/src/views/Topic/TopicView/index.jsx

3
packages/concordia-app/src/views/Topic/TopicView/index.jsx

@ -29,6 +29,7 @@ const TopicView = (props) => {
const drizzleInitialized = useSelector((state) => state.drizzleStatus.initialized); const drizzleInitialized = useSelector((state) => state.drizzleStatus.initialized);
const drizzleInitializationFailed = useSelector((state) => state.drizzleStatus.failed); const drizzleInitializationFailed = useSelector((state) => state.drizzleStatus.failed);
const userAddress = useSelector((state) => state.user.address); const userAddress = useSelector((state) => state.user.address);
const hasSignedUp = useSelector((state) => state.user.hasSignedUp);
const getTopicResults = useSelector((state) => state.contracts[FORUM_CONTRACT].getTopic); const getTopicResults = useSelector((state) => state.contracts[FORUM_CONTRACT].getTopic);
const topics = useSelector((state) => state.orbitData.topics); const topics = useSelector((state) => state.orbitData.topics);
const users = useSelector((state) => state.orbitData.users); const users = useSelector((state) => state.orbitData.users);
@ -174,7 +175,7 @@ const TopicView = (props) => {
</Step.Group> </Step.Group>
</Dimmer.Dimmable> </Dimmer.Dimmable>
<PostList postIds={postIds || []} loading={postIds === null} /> <PostList postIds={postIds || []} loading={postIds === null} />
{topicSubject !== null && postIds !== null && ( {topicSubject !== null && postIds !== null && hasSignedUp && (
<PostCreate <PostCreate
topicId={topicId} topicId={topicId}
postIndexInTopic={postIds.length + 1} postIndexInTopic={postIds.length + 1}

Loading…
Cancel
Save