+ My id: {viewerId}
+
+
+ {dialog.map(({ content, from }, index) => (
+
+ {content}
+
+ ))}
+
+
+
+ )
+}
diff --git a/src/ui/components/Page/peers.css b/src/ui/pages/Peers/index.css
similarity index 90%
rename from src/ui/components/Page/peers.css
rename to src/ui/pages/Peers/index.css
index 298db76..cfeb1e2 100644
--- a/src/ui/components/Page/peers.css
+++ b/src/ui/pages/Peers/index.css
@@ -9,7 +9,7 @@
flex-direction: column;
border-bottom: 1px solid rgba(239, 232, 227, 0.6);
- color: #725B54;
+ color: #725b54;
font-size: 0.9rem;
width: 100%;
padding: 2rem 0 1rem 2rem;
@@ -21,12 +21,12 @@
}
.idIcon {
- color: #725B54;
+ color: #725b54;
margin: 0 0.5rem 0 0;
}
.idText {
- color: #D86143;
+ color: #d86143;
margin: 0 0 0 0.3rem;
}
@@ -37,12 +37,12 @@
}
.peersIcon {
- color: #725B54;
+ color: #725b54;
margin: 0 0.5rem 0 0;
}
.peersText {
- color: #D86143;
+ color: #d86143;
margin: 0 0 0 0.3rem;
}
@@ -54,12 +54,12 @@
display: flex;
align-items: flex-start;
flex-direction: column;
-
+ height: 30%;
padding: 2rem 1rem 1rem 2rem;
}
.head {
- color: #725B54;
+ color: #725b54;
font-size: 0.9rem;
font-weight: bold;
width: 100%;
diff --git a/src/ui/components/Page/peers.js b/src/ui/pages/Peers/index.js
similarity index 90%
rename from src/ui/components/Page/peers.js
rename to src/ui/pages/Peers/index.js
index cb0f597..1cde69e 100644
--- a/src/ui/components/Page/peers.js
+++ b/src/ui/pages/Peers/index.js
@@ -2,10 +2,11 @@ import React, { useEffect, useState } from 'react'
import { Radio, User } from 'react-feather'
import { ipfs } from '../../../common/ipfs'
-import useInterval from '../Hooks/useInterval'
-import { Spinner } from '../Spinner'
+import useInterval from '../../components/Hooks/useInterval'
+import { Spinner } from '../../components/Loaders/Spinner'
-import css from './peers.css'
+import css from './index.css'
+import { ChatRoom } from './chatRoom'
const PeersTable = ({ peers }) => {
const rows = peers.map((peer, index) => (
@@ -84,6 +85,8 @@ export const Peers = () => {
/>
)}
{!loading &&