aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-11 00:17:12 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-06-11 00:22:24 +0300
commita9cf77b30aa1ed035132af756a26ecbaec53bf5b (patch)
tree6c5cbcb6c97e49981f2ad539dec689eb8a68da96
parentMoves Description Metadata (diff)
Adds Form Page Metadataform-metadata
Adds form title and description to the title and description meta fields respectively.
-rw-r--r--src/pages/FormPage.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx
index 8852ac5..fc2a68f 100644
--- a/src/pages/FormPage.tsx
+++ b/src/pages/FormPage.tsx
@@ -3,6 +3,7 @@ import { jsx, css } from "@emotion/react";
import { Link } from "react-router-dom";
import React, { SyntheticEvent, useEffect, useState, createRef } from "react";
+import { Helmet } from "react-helmet";
import { useParams } from "react-router";
import { PropagateLoader } from "react-spinners";
@@ -286,6 +287,11 @@ function FormPage(): JSX.Element {
return (
<div>
+ <Helmet>
+ <title>{`${form.name} | Python Discord Forms`}</title>
+ <meta name="description" content={form.description}/>
+ </Helmet>
+
<HeaderBar title={form.name} description={form.description}/>
<div>