diff --git a/package.json b/package.json index a1496e02..47ff4a3e 100755 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "comty-development", "title": "Comty™", "DevBuild": true, - "version": "0.2.05", + "version": "0.2.06", "description": "", "main": "index.js", "author": "RageStudio", diff --git a/src/components/UserProfile/components/like_btn.js b/src/components/UserProfile/components/Follow_btn.js similarity index 74% rename from src/components/UserProfile/components/like_btn.js rename to src/components/UserProfile/components/Follow_btn.js index 301d6ab0..f81205a3 100644 --- a/src/components/UserProfile/components/like_btn.js +++ b/src/components/UserProfile/components/Follow_btn.js @@ -1,8 +1,8 @@ import React from 'react' -import styles from './like_btn.scss' +import styles from './Follow_btn.scss' import classnames from 'classnames' -export default class Like_btn extends React.Component{ +export default class Follow_btn extends React.Component{ render(){ return( {this.props.followed? 'Following' : 'Follow'} diff --git a/src/components/UserProfile/components/like_btn.scss b/src/components/UserProfile/components/follow_btn.scss similarity index 100% rename from src/components/UserProfile/components/like_btn.scss rename to src/components/UserProfile/components/follow_btn.scss diff --git a/src/components/UserProfile/index.js b/src/components/UserProfile/index.js index 949b7e62..7f0662df 100755 --- a/src/components/UserProfile/index.js +++ b/src/components/UserProfile/index.js @@ -7,11 +7,12 @@ import {CustomIcons, MainFeed} from 'components' import { SetHeaderSearchType } from 'components/HeaderSearch' import * as Icons from '@ant-design/icons'; import Icon from '@ant-design/icons' -import Like_btn from './components/like_btn.js' +import Follow_btn from './components/Follow_btn.js' const userData = ycore.SDCP(); + function isOwnProfile(id){ - if(id == userData.username){ + if(id == userData.id){ ycore.DevOptions.ShowFunctionsLogs ? console.log('Is your own profile !!'): null return true } @@ -91,7 +92,7 @@ class UserProfile extends React.Component { {ycore.booleanFix(values.nsfw_flag)? NSFW : null} {ycore.booleanFix(values.is_pro)? CPRO™ : null} {ycore.booleanFix(values.dev)? DEVELOPER : null} - {isOwnProfile()?
this.handleFollowUser()} >
: null} + {isOwnProfile(values.id)? null :
this.handleFollowUser()} >
}

{values.username}{ycore.booleanFix(values.verified)? : null}