mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Added global header, refetch infos on window focus
This commit is contained in:
parent
98164ff4fa
commit
a8ec93a685
12 changed files with 47 additions and 55 deletions
|
@ -1,6 +1,6 @@
|
|||
import React, { useState, useEffect } from 'react'
|
||||
import Head from 'next/head'
|
||||
|
||||
import Header from '../components/header'
|
||||
import LoadingIndicator from '../components/LoadingIndicator.js'
|
||||
import QuestionSearchResult from '../components/QuestionSearchResult.js'
|
||||
import Subject from '../components/Subject.js'
|
||||
|
@ -308,9 +308,7 @@ export default function AllQuestions({ router, globalState, setGlobalState }) {
|
|||
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>Kérdések és tárgyak - Qmining | Frylabs.net</title>
|
||||
</Head>
|
||||
<Header title={'Kérdések és tárgyak'} />
|
||||
{dbs ? <>{renderDbSelector()}</> : <LoadingIndicator />}
|
||||
{dbs && data ? (
|
||||
<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue