mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 02:24:16 +00:00
0.2.06a1
This commit is contained in:
parent
c44eeff8f1
commit
b0bd46d6e2
@ -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",
|
||||
|
@ -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(
|
||||
<a className={classnames(styles.like_btn, {[styles.nofollowed]: !this.props.followed})} ><span>{this.props.followed? 'Following' : 'Follow'}</span></a>
|
@ -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)? <antd.Tag color="volcano" >NSFW</antd.Tag> : null}
|
||||
{ycore.booleanFix(values.is_pro)? <antd.Tag color="purple">CPRO™ <Icons.RocketOutlined /></antd.Tag> : null}
|
||||
{ycore.booleanFix(values.dev)? <antd.Tag color="default">DEVELOPER <Icons.CodeOutlined /></antd.Tag> : null}
|
||||
{isOwnProfile()? <div className={styles.follow_wrapper} onClick={() => this.handleFollowUser()} ><Like_btn followed={this.state.Followed? true : false} /></div> : null}
|
||||
{isOwnProfile(values.id)? null : <div className={styles.follow_wrapper} onClick={() => this.handleFollowUser()} ><Follow_btn followed={this.state.Followed? true : false} /></div>}
|
||||
</div>
|
||||
<div className={styles.contentTitle}>
|
||||
<h1 style={{ marginBottom: '0px' }} >{values.username}<antd.Tooltip title="User Verified">{ycore.booleanFix(values.verified)? <Icon style={{ color: 'blue', verticalAlign:'top' }} component={CustomIcons.VerifiedBadge} /> : null}</antd.Tooltip></h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user