diff --git a/src/data/tabs.json b/src/data/tabs.json index 468bd44..1b08897 100644 --- a/src/data/tabs.json +++ b/src/data/tabs.json @@ -11,7 +11,7 @@ "href": "/allQuestions", "text": "Kérdés keresés" }, - "subjBrowser": { + "subjectBrowser": { "href": "/subjectBrowser", "text": "Tárgyak" }, diff --git a/src/pages/addQuestion.js b/src/pages/addQuestion.js index 98f2d6e..234b18d 100644 --- a/src/pages/addQuestion.js +++ b/src/pages/addQuestion.js @@ -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 ( -
- {renderUsage()} -
- {renderSubjSelector()} - {renderStuff()} -
- ) - } else { - return - } + return ( +
+ + Qmining - Kérdés beküldés + + {subjects ? ( + <> + {renderUsage()} +
+ {renderSubjSelector()} + {renderStuff()} + + ) : ( + + )} +
+ ) } diff --git a/src/pages/allQuestions.js b/src/pages/allQuestions.js index d82b30f..97eb50b 100644 --- a/src/pages/allQuestions.js +++ b/src/pages/allQuestions.js @@ -1,4 +1,5 @@ import React, { useState, useEffect } from 'react' +import Head from 'next/head' import LoadingIndicator from '../components/LoadingIndicator.js' import QuestionSearchResult from '../components/QuestionSearchResult.js' @@ -23,41 +24,46 @@ export default function AllQuestions({ router, getData }) { }) }, []) - if (data) { - return ( -
-
- { - setSearchTerm(e.target.value) - router.replace( - `${router.pathname}${e.target.value && - '?question='}${encodeURIComponent(e.target.value)}`, - undefined, - { shallow: true } - ) - }} - /> - -
-
-
- -
-
- ) - } else { - return - } + return ( +
+ + Qmining - Kérdés keresés + + {data ? ( + <> +
+ { + setSearchTerm(e.target.value) + router.replace( + `${router.pathname}${e.target.value && + '?question='}${encodeURIComponent(e.target.value)}`, + undefined, + { shallow: true } + ) + }} + /> + +
+
+
+ +
+ + ) : ( + + )} +
+ ) } diff --git a/src/pages/contribute.js b/src/pages/contribute.js index 2b6b8e6..db67079 100644 --- a/src/pages/contribute.js +++ b/src/pages/contribute.js @@ -1,4 +1,5 @@ import React, { useState } from 'react' +import Head from 'next/head' import Button from '../components/Button.js' import Sleep from '../components/sleep' @@ -62,6 +63,9 @@ export default function contribute() { return (
+ + Qmining - Contribute / Todos +
Egy kártyára kattintva szavazhatsz. Minél több szavazat érkezik egy kártyára, annál magasabb lesz a pioritása. Jobb alsó szám minél több, diff --git a/src/pages/feedback.js b/src/pages/feedback.js index f806ceb..11e4bfd 100644 --- a/src/pages/feedback.js +++ b/src/pages/feedback.js @@ -1,5 +1,6 @@ import React, { useState } from 'react' import fetch from 'unfetch' +import Head from 'next/head' import Button from '../components/Button.js' @@ -233,6 +234,9 @@ export default function Feedback(props) { return (
+ + Qmining - Feedback + +
+ { + setActiveSubjName(subjName) }} /> - -
- { - setActiveSubjName(subjName) - }} - /> -
-
- {qCount} kérdés, {sCount} tárgy -
- -
- -
-
- ) - } else { - return - } +
+
+ {qCount} kérdés, {sCount} tárgy +
+ +
+ +
+ + ) : ( + + )} + + ) } diff --git a/src/pages/thanks.js b/src/pages/thanks.js index 2a16764..5e7fcd7 100644 --- a/src/pages/thanks.js +++ b/src/pages/thanks.js @@ -1,9 +1,13 @@ import styles from './thanks.module.css' import constants from '../constants.json' +import Head from 'next/head' export default function Thanks () { return (
+ + Qmining - Thanks for the donate! +
Thanks for the donate!