Profile.jsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import React from "react";
  2. import { useDispatch } from "react-redux";
  3. import { actionLogout } from "../../redux/actions/creators/auth";
  4. import { LeftBar, Player } from "../../Components";
  5. import "./style.scoped.scss";
  6. import ProfileData from "../../Components/ProfileData/ProfileData";
  7. const Profile = () => {
  8. const dispatch = useDispatch();
  9. return (
  10. <div className="profile">
  11. <div className="main">
  12. <LeftBar />
  13. <main className="content">
  14. <div className="wrapper">
  15. <div className="header">
  16. <h1 className="page-name">Profile</h1>
  17. </div>
  18. <ProfileData
  19. avatarChanging={true}
  20. buttonsVisible={false}
  21. />
  22. <hr className="separator" />
  23. <div
  24. className="button-logout"
  25. onClick={() => dispatch(actionLogout())}
  26. >
  27. Logout
  28. </div>
  29. </div>
  30. </main>
  31. </div>
  32. <Player />
  33. </div>
  34. );
  35. };
  36. export default Profile;