mirror of https://gitlab.com/ecentrics/concordia
Apostolos Fanakis
4 years ago
3 changed files with 50 additions and 32 deletions
@ -1,16 +1,23 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
import { Container, Header, Icon } from 'semantic-ui-react'; |
import { Container, Header, Icon } from 'semantic-ui-react'; |
||||
|
import { useTranslation } from 'react-i18next'; |
||||
|
|
||||
const PollDataInvalid = () => ( |
const PollDataInvalid = () => { |
||||
<Container id="topic-poll-data-invalid-container"> |
const { t } = useTranslation(); |
||||
<Header as="h3"> |
|
||||
<Icon name="warning sign" color="red" /> |
return ( |
||||
<Header.Content> |
<Container id="topic-poll-data-invalid-container" textAlign="center"> |
||||
This topic has a poll but the data are untrusted! |
<Header as="h3" icon textAlign="center"> |
||||
<Header.Subheader>The poll data downloaded from the poster have been tampered with.</Header.Subheader> |
<Icon name="warning sign" color="red" /> |
||||
</Header.Content> |
<Header.Content> |
||||
</Header> |
{t('topic.poll.invalid.data.header')} |
||||
</Container> |
<Header.Subheader> |
||||
); |
{t('topic.poll.invalid.data.sub.header')} |
||||
|
</Header.Subheader> |
||||
|
</Header.Content> |
||||
|
</Header> |
||||
|
</Container> |
||||
|
); |
||||
|
}; |
||||
|
|
||||
export default PollDataInvalid; |
export default PollDataInvalid; |
||||
|
@ -1,21 +1,26 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
import { Container, Header, Icon } from 'semantic-ui-react'; |
import { Container, Header, Icon } from 'semantic-ui-react'; |
||||
import { Link } from 'react-router-dom'; |
import { Link } from 'react-router-dom'; |
||||
|
import { useTranslation } from 'react-i18next'; |
||||
|
|
||||
const PollGuestView = () => ( |
const PollGuestView = () => { |
||||
<Container id="topic-poll-guest-view-container" textAlign="center"> |
const { t } = useTranslation(); |
||||
<Header as="h3" icon textAlign="center"> |
|
||||
<Icon name="signup" /> |
return ( |
||||
<Header.Content> |
<Container id="topic-poll-guest-view-container" textAlign="center"> |
||||
Only registered users are able to vote in polls. |
<Header as="h3" icon textAlign="center"> |
||||
<Header.Subheader> |
<Icon name="signup" /> |
||||
You can register in the |
<Header.Content> |
||||
<Link to="/auth/register">signup</Link> |
{t('topic.poll.guest.header')} |
||||
page. |
<Header.Subheader> |
||||
</Header.Subheader> |
{t('topic.poll.guest.sub.header.pre')} |
||||
</Header.Content> |
<Link to="/auth/register">{t('topic.poll.guest.sub.header.link')}</Link> |
||||
</Header> |
{t('topic.poll.guest.sub.header.post')} |
||||
</Container> |
</Header.Subheader> |
||||
); |
</Header.Content> |
||||
|
</Header> |
||||
|
</Container> |
||||
|
); |
||||
|
}; |
||||
|
|
||||
export default PollGuestView; |
export default PollGuestView; |
||||
|
Loading…
Reference in new issue