Commit
·
2902f73
1
Parent(s):
3d8bae0
debug
Browse files- frontend/app/page.js +0 -1
- frontend/app/search/page.js +0 -12
frontend/app/page.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
'use client';
|
2 |
|
3 |
-
import { useState, useEffect } from 'react';
|
4 |
import RecentChats from '@components/RecentChats';
|
5 |
import { useRelayAPI } from '@components/RelayAPI';
|
6 |
|
|
|
1 |
'use client';
|
2 |
|
|
|
3 |
import RecentChats from '@components/RecentChats';
|
4 |
import { useRelayAPI } from '@components/RelayAPI';
|
5 |
|
frontend/app/search/page.js
CHANGED
@@ -1,20 +1,8 @@
|
|
1 |
'use client';
|
2 |
|
3 |
-
import { useState, useEffect } from 'react';
|
4 |
import UserSearch from '@components/SearchUsers';
|
5 |
|
6 |
export default function SearchUsersPage() {
|
7 |
-
const [me, setMe] = useState('');
|
8 |
-
|
9 |
-
useEffect(() => {
|
10 |
-
// Retrieve 'me' from localStorage because who doesn't like remembering things?
|
11 |
-
const storedMe = localStorage.getItem('me');
|
12 |
-
if (storedMe) {
|
13 |
-
setMe(storedMe);
|
14 |
-
} else {
|
15 |
-
toast.warn("Hey, there's no 'me' in localStorage. Are you sure you're logged in?");
|
16 |
-
}
|
17 |
-
}, []);
|
18 |
|
19 |
return (
|
20 |
<div className='search-page' style={{ width: '100%', padding: '20px', backgroundColor: 'rgb(28, 28, 47)', height: '100dvh' }}>
|
|
|
1 |
'use client';
|
2 |
|
|
|
3 |
import UserSearch from '@components/SearchUsers';
|
4 |
|
5 |
export default function SearchUsersPage() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
return (
|
8 |
<div className='search-page' style={{ width: '100%', padding: '20px', backgroundColor: 'rgb(28, 28, 47)', height: '100dvh' }}>
|