aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.tsx
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-11 00:16:18 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-06-11 00:22:22 +0300
commitcced46237dc28c7a687e48e144dd60a1ff7daf58 (patch)
tree60f226766b1ecc3280f9e9d3426481bc308d4a7f /src/App.tsx
parentAdds React-Helmet (diff)
Moves Description Metadata
Moves the description meta tag into a helmet managed context, to allow subpages to override it.
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/App.tsx b/src/App.tsx
index 523e583..6f1163a 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -2,6 +2,7 @@
/** @global location */
import React, { Suspense } from "react";
import { jsx, css, Global } from "@emotion/react";
+import { Helmet } from "react-helmet";
import {
BrowserRouter as Router,
@@ -38,6 +39,10 @@ function PageLoading() {
function App(): JSX.Element {
return (
<div>
+ <Helmet>
+ <meta name="description" content="Python Discord Forms is the surveying system for the Python Discord server."/>
+ </Helmet>
+
<Global styles={globalStyles}/>
<Router>
<Route render={({ location }) => (