mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-08 12:07:21 -04:00
refiling and api call for search (#11)
* refiling and api call for search * updating allowed hosts * update search * proper api call * search page working * navbar * small fixes * fix types --------- Co-authored-by: Sahej Panag <spanag3@gatech.edu> Co-authored-by: afazio1 <alexa.fazio04@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ export const useSessionRedirect = () => {
|
||||
// Redirect to home if session is defined
|
||||
useEffect(() => {
|
||||
if (session !== undefined) {
|
||||
navigate('/');
|
||||
navigate('/search');
|
||||
}
|
||||
}, [session, navigate])
|
||||
}
|
||||
Reference in New Issue
Block a user