11import React , { useEffect , useState } from 'react'
22import { Link , useNavigate } from 'react-router-dom' ;
33import secureLocalStorage from "react-secure-storage"
4- import { BsChatLeftFill } from "react-icons/bs" ;
4+ import { BsChatLeftFill , BsPersonFillGear , BsPower } from "react-icons/bs" ;
55
66const Dashboard = ( ) => {
77 const navigate = useNavigate ( )
@@ -17,9 +17,25 @@ const Dashboard = () => {
1717 if ( RoleUser !== null && EmailUser !== null ) {
1818 return (
1919 < div className = "bg-[url('https://wallpapercave.com/wp/wp3998740.png')] bg-cover bg-center py-8 px-12 min-h-screen" >
20- < div className = "" >
21- < BsChatLeftFill className = 'h-16 w-auto bg-green-500 p-4 rounded-xl text-green-800 shadow-md' />
22- < p className = "text-bold pt-1" > Online ChatApp</ p >
20+ < div className = "md:flex justify-between" >
21+ < div className = "flex " >
22+ < BsChatLeftFill className = 'h-16 w-auto bg-green-500 p-4 rounded-xl text-green-800 shadow-md' />
23+ < p className = "font-bold text-white pt-1 text-2xl pl-2 pt-3 " > Online ChatApp</ p >
24+ </ div >
25+ < div className = "flex mt-2" >
26+ < div className = "flex" >
27+ < p className = "text-2xl text-white flex" >
28+ < BsPersonFillGear />
29+ </ p >
30+ < p className = "pl-2 font-semibold text-white" > My Profile</ p >
31+ </ div >
32+ < div className = "flex pl-4 cursor-pointer" onClick = { logout } >
33+ < p className = "text-2xl text-white flex" >
34+ < BsPower />
35+ </ p >
36+ < p className = "pl-2 font-semibold text-white" > Logout</ p >
37+ </ div >
38+ </ div >
2339 </ div >
2440 </ div >
2541 )
0 commit comments