fomrs split out
This commit is contained in:
+21
-3
@@ -27,6 +27,13 @@ export default function Footer(props) {
|
||||
: setShowShareState(true);
|
||||
};
|
||||
|
||||
console.log(router.asPath);
|
||||
const shareBodyStr = t("common:gov-wales-link") + router.asPath;
|
||||
const shareSubjectStr =
|
||||
t("common:social-shared-from") +
|
||||
" " +
|
||||
t("common:gov-wales-label").toLowerCase();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="sharebar" id="sharebar">
|
||||
@@ -60,7 +67,10 @@ export default function Footer(props) {
|
||||
>
|
||||
<li>
|
||||
<a
|
||||
href="https://twitter.com/intent/tweet?url=https%3A//gov.wales/"
|
||||
href={
|
||||
"https://twitter.com/intent/tweet?url=" +
|
||||
shareBodyStr
|
||||
}
|
||||
className="twitter"
|
||||
>
|
||||
<span className="vo_hidden">
|
||||
@@ -73,7 +83,10 @@ export default function Footer(props) {
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="https://www.facebook.com/sharer/sharer.php?u=https%3A//gov.wales/"
|
||||
href={
|
||||
"https://www.facebook.com/sharer/sharer.php?u=" +
|
||||
shareBodyStr
|
||||
}
|
||||
className="facebook"
|
||||
>
|
||||
<span className="vo_hidden">
|
||||
@@ -84,7 +97,12 @@ export default function Footer(props) {
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="mailto:?body=https%3A//gov.wales/&subject=Shared%20from%20gov.wales"
|
||||
href={
|
||||
"mailto:?body=" +
|
||||
shareBodyStr +
|
||||
"&subject=" +
|
||||
shareSubjectStr
|
||||
} //</li>https%3A//gov.wales/&subject=Shared%20from%20gov.wales"
|
||||
className="email"
|
||||
>
|
||||
<span className="vo_hidden">
|
||||
|
||||
Reference in New Issue
Block a user