fomrs split out

This commit is contained in:
2021-10-05 09:47:57 +01:00
parent 2ace28aa40
commit 8714d71189
48 changed files with 42577 additions and 146 deletions
+21 -3
View File
@@ -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/&amp;subject=Shared%20from%20gov.wales"
href={
"mailto:?body=" +
shareBodyStr +
"&subject=" +
shareSubjectStr
} //</li>https%3A//gov.wales/&amp;subject=Shared%20from%20gov.wales"
className="email"
>
<span className="vo_hidden">