Browse Source
feat(create-election-success) : improve layout/ux and add tool for send by mail (front only)
master
feat(create-election-success) : improve layout/ux and add tool for send by mail (front only)
master
4 changed files with 116 additions and 46 deletions
-
9public/locale/i18n/fr/resource.json
-
17src/components/CopyField.jsx
-
29src/components/banner/Facebook.jsx
-
107src/components/views/CreateSuccess.jsx
@ -0,0 +1,29 @@ |
|||
/* eslint react/prop-types: 0 */ |
|||
import React from "react"; |
|||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
|||
import { faFacebookSquare } from "@fortawesome/free-brands-svg-icons"; |
|||
|
|||
const Facebook = props => { |
|||
const handleClick = () => { |
|||
const url = |
|||
"https://www.facebook.com/sharer.php?u=" + |
|||
props.url + |
|||
"&t=" + |
|||
props.title; |
|||
window.open( |
|||
url, |
|||
"", |
|||
"menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=700" |
|||
); |
|||
}; |
|||
return ( |
|||
<button className={props.className} onClick={handleClick} type="button"> |
|||
<FontAwesomeIcon icon={faFacebookSquare} className="mr-2" /> |
|||
{props.text} |
|||
</button> |
|||
); |
|||
}; |
|||
|
|||
export default Facebook; |
|||
|
|||
//i |
Write
Preview
Loading…
Cancel
Save
Reference in new issue