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 ( -
-
-
-

Validálás

-
-
-
- Különböző okokból kellhet, hogy bizonyítsd hogy az oldalhoz van - hozzáférésed. Ebben az esetben ezzel a tokennel tudod: -
- {token &&
{token}
} -
-
- ) -} diff --git a/src/pages/validation.module.css b/src/pages/validation.module.css deleted file mode 100644 index 04d3b45..0000000 --- a/src/pages/validation.module.css +++ /dev/null @@ -1,16 +0,0 @@ -.descrip { - color: #acabab; - font-weight: bold; - padding-top: 4%; - padding-bottom: 4%; - font-size: 20px; -} - -.tokenContainer { - font-family: 'Courier New', Courier, monospace; - text-align: center; - font-size: 24px; - color: white; - padding: 20px; - font-weight: bold; -}