Commit
·
3d8bae0
1
Parent(s):
b2a31fd
remove un
Browse files- frontend/app/page.js +0 -11
frontend/app/page.js
CHANGED
@@ -6,7 +6,6 @@ import { useRelayAPI } from '@components/RelayAPI';
|
|
6 |
|
7 |
export default function ChatPage() {
|
8 |
const relayApi = useRelayAPI();
|
9 |
-
const [me, setMe] = useState('');
|
10 |
|
11 |
const sendNotify = ()=> {
|
12 |
relayApi.broadcast('NOTIFY','This is a notification')
|
@@ -18,16 +17,6 @@ export default function ChatPage() {
|
|
18 |
relayApi.leaveChannel('NOTIFY')
|
19 |
}
|
20 |
|
21 |
-
useEffect(() => {
|
22 |
-
// Retrieve 'me' from localStorage because who doesn't like remembering things?
|
23 |
-
const storedMe = localStorage.getItem('me');
|
24 |
-
if (storedMe) {
|
25 |
-
setMe(storedMe);
|
26 |
-
} else {
|
27 |
-
console.warn("Hey, there's no 'me' in localStorage. Are you sure you're logged in?");
|
28 |
-
}
|
29 |
-
}, []);
|
30 |
-
|
31 |
return (
|
32 |
<div style={{ width: '100%', padding: '20px', backgroundColor: 'rgb(28, 28, 47)', height: '100dvh' }}>
|
33 |
<div className='pulse-and-fade' style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', height: '100%', width: '100%' }}>
|
|
|
6 |
|
7 |
export default function ChatPage() {
|
8 |
const relayApi = useRelayAPI();
|
|
|
9 |
|
10 |
const sendNotify = ()=> {
|
11 |
relayApi.broadcast('NOTIFY','This is a notification')
|
|
|
17 |
relayApi.leaveChannel('NOTIFY')
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
return (
|
21 |
<div style={{ width: '100%', padding: '20px', backgroundColor: 'rgb(28, 28, 47)', height: '100dvh' }}>
|
22 |
<div className='pulse-and-fade' style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', height: '100%', width: '100%' }}>
|