diff --git a/README.md b/README.md
new file mode 100644
index 0000000..bdbbc30
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+this is reame
diff --git a/client/package.json b/client/package.json
index 402e547..b2bb37f 100644
--- a/client/package.json
+++ b/client/package.json
@@ -21,7 +21,8 @@
"react-router": "^6.26.2",
"react-router-dom": "^6.26.2",
"react-toastify": "^10.0.6",
- "socket.io-client": "^4.8.0"
+ "socket.io-client": "^4.8.0",
+ "react-icons":"^5.5.0"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
diff --git a/client/src/App.jsx b/client/src/App.jsx
index 1731a47..d745abe 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -17,33 +17,22 @@ import "react-toastify/dist/ReactToastify.css";
const App = () => {
localStorage.setItem("delivery", false);
- const isAuthenticated = !!localStorage.getItem("user");
-
- const ProtectedRoute = ({element}) => {
- if (!isAuthenticated) {
- toast.warning("Please log in to access this page!", { position: "top-right" });
- return ;
- }
- return element;
- };
-
return (
<>
} />
- } />} />
- } />} />
- } />} />
- } />} />
- } />} />
- } />} />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
} />
- } />
} />
>
);
};
-export default App;
\ No newline at end of file
+export default App;
diff --git a/client/src/Components/Meeting.jsx b/client/src/Components/Meeting.jsx
index 8e0b607..c5860db 100644
--- a/client/src/Components/Meeting.jsx
+++ b/client/src/Components/Meeting.jsx
@@ -9,7 +9,7 @@ const socket = io("https://hospo.onrender.com");
function Meeting() {
const [stream, setStream] = useState();
const [peerId, setPeerId] = useState('');
- const { id } = useParams();
+ const { userid } = useParams();
const peerInstance = useRef(null);
const localVideoRef = useRef();
const remoteVideoRef = useRef();
@@ -19,7 +19,7 @@ function Meeting() {
const [isConnecting, setIsConnecting] = useState(false);
const [showControls, setShowControls] = useState(true);
const nav = useNavigate();
- const name = id;
+ const name = userid;
// Hide controls after inactivity
useEffect(() => {