From 562f675297e03f8abb16af0a5506c51ba91e166a Mon Sep 17 00:00:00 2001
From: ilyayudovin <ilyayudovin123@gmail.com>
Date: Sat, 27 Jun 2020 15:34:32 +0300
Subject: button as a component

---
 src/pages/ProfilePage/ProfileInfo.tsx | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'src/pages/ProfilePage/ProfileInfo.tsx')

diff --git a/src/pages/ProfilePage/ProfileInfo.tsx b/src/pages/ProfilePage/ProfileInfo.tsx
index a445b51..b68075f 100644
--- a/src/pages/ProfilePage/ProfileInfo.tsx
+++ b/src/pages/ProfilePage/ProfileInfo.tsx
@@ -6,7 +6,6 @@ import CameraAltIcon from '@material-ui/icons/CameraAlt';
 import MoreMenu from "./MoreMenu";
 import {patch} from '../../requests';
 import Highlight from "../../components/Highlight/Highlight";
-import UserStatus from "../../components/UserStatus/UserStatus";
 
 
 interface PropTypes {
@@ -34,7 +33,6 @@ const useStyles = makeStyles({
     display: 'flex',
     width: '100%',
     height: 50,
-    borderBottom: '1px solid lightgray',
     margin: '50px 0'
   },
   menuButton: {
@@ -131,11 +129,10 @@ const ProfileInfo: React.FC<PropTypes> = ({user, logOut,savedPolls, totalVotes})
       <div className={classes.name}>
         {user?.username}
       </div>
-      <UserStatus />
       <div className={classes.profileMenu}>
-        <Highlight text="polls" value={savedPolls}/>
-        <Highlight text="since" value={user?.createdAt.toString().substring(0,10).replace(/-/g, '.')}/>
-        <Highlight text="total" value={totalVotes}/>
+        <Highlight text="Polls" value={savedPolls}/>
+        <Highlight text="Since" value={user?.createdAt.toString().substring(0,10).replace(/-/g, '.')}/>
+        <Highlight text="Total" value={totalVotes}/>
       </div>
     </div>
   );
-- 
cgit v1.2.3