Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
micklerj committed May 9, 2024
1 parent 774f575 commit a348cc7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frontend/src/Home.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useRef } from 'react';
import { useNavigate } from 'react-router-dom';
import { BrowserRouter as Router } from 'react-router-dom';
//import { BrowserRouter as Router } from 'react-router-dom';
import axios from "axios";
import './normal.css';
import './Home.css';
Expand All @@ -26,7 +26,6 @@ const App = () => {
const chatLogRef = useRef(null);

// Login/logout stuff
const [isLoggedIn, setIsLoggedIn] = useState(true);
const navigate = useNavigate();

useEffect(() => {
Expand Down Expand Up @@ -255,7 +254,6 @@ const App = () => {

// TODO: Clear user authentication tokens or session data here

setIsLoggedIn(false);
navigate('/login');
};

Expand All @@ -269,10 +267,6 @@ const App = () => {
useEffect(() => {
console.log("new currentConvID: ", currentConvID);
}, [currentConvID]);

/*useEffect(() => {
handleInitializeSideBar();
}, []);*/

return (
<div className="App">
Expand Down

0 comments on commit a348cc7

Please sign in to comment.