From a9cf77b30aa1ed035132af756a26ecbaec53bf5b Mon Sep 17 00:00:00 2001
From: Hassan Abouelela <hassan@hassanamr.com>
Date: Fri, 11 Jun 2021 00:17:12 +0300
Subject: Adds Form Page Metadata

Adds form title and description to the title and description meta fields
 respectively.
---
 src/pages/FormPage.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/pages/FormPage.tsx')

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>
-- 
cgit v1.2.3

