Browse Source

Fix Dimmer usage

develop
Apostolos Fanakis 4 years ago
parent
commit
b09ec87e47
  1. 3
      packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx
  2. 10
      packages/concordia-app/src/views/Topic/TopicView/index.jsx

3
packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx

@ -64,9 +64,6 @@ const TopicListRow = (props) => {
return ( return (
<Dimmer.Dimmable as={List.Item} onClick={handleTopicClick} blurring dimmed={loading} className="list-item"> <Dimmer.Dimmable as={List.Item} onClick={handleTopicClick} blurring dimmed={loading} className="list-item">
<Dimmer>
<Loader />
</Dimmer>
<List.Icon name="user circle" size="big" inverted color="black" verticalAlign="middle" /> <List.Icon name="user circle" size="big" inverted color="black" verticalAlign="middle" />
<List.Content> <List.Content>
<List.Header> <List.Header>

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

@ -74,17 +74,11 @@ const TopicView = (props) => {
}, [topicId, topics]); }, [topicId, topics]);
return ( return (
<Container id="topic-container" textAlign="center">
<Dimmer.Dimmable <Dimmer.Dimmable
as={Container}
id="topic-container"
blurring blurring
dimmed={topicAuthorAddress === null && topicAuthor === null && timestamp === null} dimmed={topicAuthorAddress === null && topicAuthor === null && timestamp === null}
textAlign="center"
className="list-item"
> >
<Dimmer>
<Loader />
</Dimmer>
<Step.Group fluid> <Step.Group fluid>
<Step key="topic-header-step-user"> <Step key="topic-header-step-user">
<Icon name="user circle" size="big" inverted color="black" /> <Icon name="user circle" size="big" inverted color="black" />
@ -98,7 +92,6 @@ const TopicView = (props) => {
</Step.Title> </Step.Title>
</Step.Content> </Step.Content>
</Step> </Step>
<Step key="topic-header-step-title"> <Step key="topic-header-step-title">
<Step.Content> <Step.Content>
<Step.Title> <Step.Title>
@ -121,6 +114,7 @@ const TopicView = (props) => {
</Step> </Step>
</Step.Group> </Step.Group>
</Dimmer.Dimmable> </Dimmer.Dimmable>
</Container>
); );
}; };

Loading…
Cancel
Save