diff --git a/src/data/topBarLinks.json b/src/data/topBarLinks.json index 7bcf712..f722ea5 100644 --- a/src/data/topBarLinks.json +++ b/src/data/topBarLinks.json @@ -3,10 +3,6 @@ "href": "/pwRequest", "text": "Jelszó kérés" }, - "validation": { - "href": "/validation", - "text": "Validálás" - }, "ranklist": { "href": "/ranklist", "text": "Ranklista" diff --git a/src/pages/validation.jsx b/src/pages/validation.jsx deleted file mode 100644 index 0115abe..0000000 --- a/src/pages/validation.jsx +++ /dev/null @@ -1,46 +0,0 @@ -import React, { useEffect } from 'react' - -import Header from '../components/header' - -import styles from './validation.module.css' -import constants from '../constants' - -function fetchValidation() { - return new Promise((resolve) => { - fetch(`${constants.apiUrl}validationtoken`, { - credentials: 'include', - }) - .then((resp) => { - return resp.json() - }) - .then((res) => { - resolve(res) - }) - }) -} - -export default function Validation() { - const [token, setToken] = React.useState('') - - useEffect(() => { - fetchValidation().then((res) => { - setToken(res.key) - }) - }, []) - - return ( -