From 763dd47d53879be5af6fae293013f47e39e7ad80 Mon Sep 17 00:00:00 2001 From: Clement G Date: Sun, 3 May 2020 20:44:51 +0200 Subject: [PATCH] feat(create-election-success) : try new layout --- src/components/CopyField.jsx | 8 +++---- src/components/views/CreateSuccess.jsx | 33 ++++++++++++++++++-------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/components/CopyField.jsx b/src/components/CopyField.jsx index 0baf445..8009343 100644 --- a/src/components/CopyField.jsx +++ b/src/components/CopyField.jsx @@ -16,7 +16,7 @@ const CopyField = props => { document.execCommand("copy"); }; - const { t, value, iconCopy, iconOpen } = props; + const { t, value, iconCopy } = props; return (
@@ -31,7 +31,7 @@ const CopyField = props => {
-
+ {/*
{ {t("Open")} -
+
*/}
); }; diff --git a/src/components/views/CreateSuccess.jsx b/src/components/views/CreateSuccess.jsx index 90a8114..81ac1e0 100644 --- a/src/components/views/CreateSuccess.jsx +++ b/src/components/views/CreateSuccess.jsx @@ -1,9 +1,11 @@ /* eslint react/prop-types: 0 */ import React, { Component } from "react"; import { Col, Container, Row } from "reactstrap"; +import { Link } from "react-router-dom"; import { withTranslation } from "react-i18next"; import { faCopy, + faUsers, faExclamationTriangle, faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons"; @@ -36,7 +38,7 @@ class CreateSuccess extends Component { const { t } = this.props; const electionLink = this.props.invitationOnly ? ( <> -

+

{t( "Voters received a link to vote by email. Each link can be used only once!" )} @@ -44,7 +46,7 @@ class CreateSuccess extends Component { ) : ( <> -

{t("Voting address")}

+

{t("Voting address")}

- + +
+ + {t("Keep these links carefully")} +
+
{electionLink}

{t("Results address")}

@@ -79,10 +86,8 @@ class CreateSuccess extends Component { iconOpen={faExternalLinkAlt} t={t} /> -
- - {t("Keep these links carefully")} -
+
+ {/*
*/} - - - + + + + + {t("Participate now!")} + + + ); }