-
DASHBOARD
+
+
+
Dashboard
+
+ {message.message || "Loading..."}
+
+
+ {authUser ? authUser.email : "Not authenticated"}
+
+
+
+
+
+
+
+
-
- {message.message || "Loading..."}
-
-
- {email || "Loading"}
-
-
-
Contact
-
-
Find tutor
-
-
Chat
-
-
-
- {authUser.role === "tutor" ?
-
Your page :
}
- )
+ );
}
\ No newline at end of file
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 7ebc9e4..aae32b3 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -1,21 +1,9 @@
-import { useState, useEffect } from 'react'
-import '../App.css'
-import { useNavigate } from 'react-router';
-import useIsAuthenticated from 'react-auth-kit/hooks/useIsAuthenticated'
-import TextField from '../components/TextField'
-import useAuthUser from 'react-auth-kit/hooks/useAuthUser';
+import React, { useEffect, useState } from 'react';
import axios from 'axios';
-interface IUserData { // this is how we tell typescript that auth will return email
- email: string;
- token: string;
-};
+const Home = () => {
+ const [message, setMessage] = useState({ message: '' });
-export default function Home() {
- const navigate = useNavigate();
- const [message, setMessage] = useState({message: ''})
- const isAuthenticated = useIsAuthenticated();
-
useEffect(() => {
axios({
method: 'GET',
@@ -23,19 +11,24 @@ export default function Home() {
}).then(
response => setMessage(response.data)
);
- }, [])
-
+ }, []);
return (
-
-
- { message.message || "Loading..." }
-
-
- Welcome to the website, hello hello
-
-
Sign In
-
Sign Up
+
+
+
+ {message.message || "Loading..."}
+
+
+ Welcome to the website
+
+
+
- )
-}
\ No newline at end of file
+ );
+};
+
+export default Home;
\ No newline at end of file
diff --git a/src/pages/TutorPage.tsx b/src/pages/TutorPage.tsx
index f428a00..15ff080 100644
--- a/src/pages/TutorPage.tsx
+++ b/src/pages/TutorPage.tsx
@@ -30,15 +30,28 @@ export default function TutorPage() {
return (
-
-
ABC
-
Name: {tutor?.name}
-
GPA: {tutor?.GPA}
-
Description: {tutor?.description}
-
RATING: {tutor?.rating}
-
-
-
Join Meeting
+
+
+
Tutor Information
+
+ Name: {tutor?.name}
+
+
+ GPA: {tutor?.GPA}
+
+
+ Description: {tutor?.description}
+
+
+ Rating: {tutor?.rating}
+
+
+ Join Meeting
+
+
)
}
\ No newline at end of file
From eaadb461669d1a941f1f7a2fcfaf1172f232ff32 Mon Sep 17 00:00:00 2001
From: Korrectional <156260369+korrectional@users.noreply.github.com>
Date: Sun, 2 Feb 2025 10:33:51 -0500
Subject: [PATCH 2/3] Fix
---
src/App.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/App.css b/src/App.css
index 9bb628e..f48d773 100644
--- a/src/App.css
+++ b/src/App.css
@@ -185,6 +185,7 @@ html, body {
.bg-gray-300 {
background-color: #e2e8f0;
+}
.chats-form {
margin-left: 16%;
From ac90fb99e21c9812e1eb421afcd3a8db8e1ded42 Mon Sep 17 00:00:00 2001
From: Korrectional <156260369+korrectional@users.noreply.github.com>
Date: Sun, 2 Feb 2025 10:35:37 -0500
Subject: [PATCH 3/3] Another fix
---
src/App.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/App.css b/src/App.css
index f48d773..7ef2cd8 100644
--- a/src/App.css
+++ b/src/App.css
@@ -137,7 +137,7 @@ html, body {
.rounded {
border-radius: 0.25rem;
-
+}
.logo {
height: 6em;