From 4208baad0388099e0ef21b84f17bf7e35f091e00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pomucz=20Tam=C3=A1s?= <pomucz@sch.bme.hu>
Date: Fri, 31 Jan 2025 19:48:36 +0100
Subject: [PATCH] Hide profile, mentors and schedule page.

---
 src/components/Header.js        | 24 ++++++++++++------------
 src/components/pages/Home.js    | 33 +++++++++++++++++----------------
 src/components/pages/Profile.js | 16 ++++++++++++++++
 3 files changed, 45 insertions(+), 28 deletions(-)

diff --git a/src/components/Header.js b/src/components/Header.js
index c0a20e7..9f0028c 100644
--- a/src/components/Header.js
+++ b/src/components/Header.js
@@ -37,18 +37,18 @@ const menuItems = [
     prefix: "",
     permissionLevel: 0,
   },
-  {
-    text: "Ütemterv",
-    to: "/schedule",
-    prefix: "",
-    permissionLevel: 1,
-  },
-  {
-    text: "Mentorok",
-    to: "/mentors",
-    prefix: "",
-    permissionLevel: 1,
-  },
+  // {
+  //   text: "Ütemterv",
+  //   to: "/schedule",
+  //   prefix: "",
+  //   permissionLevel: 1,
+  // },
+  // {
+  //   text: "Mentorok",
+  //   to: "/mentors",
+  //   prefix: "",
+  //   permissionLevel: 1,
+  // },
   {
     text: "Statisztika",
     to: "/statistics",
diff --git a/src/components/pages/Home.js b/src/components/pages/Home.js
index baed19c..da24f13 100644
--- a/src/components/pages/Home.js
+++ b/src/components/pages/Home.js
@@ -103,22 +103,23 @@ class Home extends Component {
               />
               <Container>
                 {this.props.user.id ? (
-                <Button
-                as={Link}
-                to="/profile"
-                primary
-                size="huge"
-                style={{
-                fontSize: "2vw",
-                marginTop: "1vw",
-                marginBottom: "1vw",
-                fontWeight: "bold",
-                letterSpacing: "0.13vw",
-                }}
-                >
-                    JelentkezĂŠs
-                <Icon name="right arrow" />
-                </Button>
+                  <Button
+                    as={Link}
+                    to="/profile"
+                    primary
+                    size="huge"
+                    disabled
+                    style={{
+                      fontSize: "2vw",
+                      marginTop: "1vw",
+                      marginBottom: "1vw",
+                      fontWeight: "bold",
+                      letterSpacing: "0.13vw",
+                    }}
+                  >
+                    JelentkezĂŠs hamarosan
+                    {/* <Icon name="right arrow" /> */}
+                  </Button>
                 ) : (
                   <Button
                     href="/oidc/authenticate/"
diff --git a/src/components/pages/Profile.js b/src/components/pages/Profile.js
index 1f9f3eb..00e6886 100644
--- a/src/components/pages/Profile.js
+++ b/src/components/pages/Profile.js
@@ -1,3 +1,5 @@
+/* eslint-disable */
+
 import { Container, Divider, Dropdown, Form, Segment } from "semantic-ui-react";
 import React, { Component } from "react";
 import { groupChange, submitRegistration, textChange } from "../../actions";
@@ -37,6 +39,20 @@ class Profile extends Component {
     } = this.props;
     const endDate = new Date(deadline);
     const canEdit = Date.now() < endDate;
+    return ( //TODO: remove
+      <Container
+        style={{
+          marginTop: "1em",
+        }}
+      >
+        <Segment inverted color="red" tertiary>
+          <p
+            style={{ fontSize: "1.3em" }}
+            dangerouslySetInnerHTML={{ __html: messageAfter }}
+          />
+        </Segment>
+      </Container>
+    );
     return (
       <Container
         style={{
-- 
GitLab