Added page titles

This commit is contained in:
mrfry
2020-11-26 13:44:13 +01:00
parent 587c304317
commit 37060e9e69
11 changed files with 142 additions and 94 deletions
+18 -12
View File
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from 'react'
import fetch from 'unfetch'
import Head from 'next/head'
import LoadingIndicator from '../components/LoadingIndicator.js'
@@ -302,16 +303,21 @@ export default function AddQuestion() {
)
}
if (subjects) {
return (
<div>
{renderUsage()}
<hr />
{renderSubjSelector()}
{renderStuff()}
</div>
)
} else {
return <LoadingIndicator />
}
return (
<div>
<Head>
<title>Qmining - Kérdés beküldés</title>
</Head>
{subjects ? (
<>
{renderUsage()}
<hr />
{renderSubjSelector()}
{renderStuff()}
</>
) : (
<LoadingIndicator />
)}
</div>
)
}