mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
format
This commit is contained in:
parent
108b8a1f51
commit
cd853cd4e9
@ -1,11 +1,12 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import moment from "moment"
|
import moment from "moment"
|
||||||
|
|
||||||
import { Icons } from "components/Icons"
|
import { Icons } from "components/Icons"
|
||||||
|
|
||||||
export default React.memo((props) => {
|
export default React.memo((props) => {
|
||||||
return <div id="details" className="details">
|
return <div id="details" className="details">
|
||||||
{props.state.user.fullName &&
|
{
|
||||||
|
props.state.user.fullName &&
|
||||||
<div>
|
<div>
|
||||||
<h2>{props.state.user.fullName}</h2>
|
<h2>{props.state.user.fullName}</h2>
|
||||||
</div>
|
</div>
|
||||||
@ -15,7 +16,8 @@ export default React.memo((props) => {
|
|||||||
@{props.state.user.username} #{props.state.user._id}
|
@{props.state.user.username} #{props.state.user._id}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
{props.state.user.description &&
|
{
|
||||||
|
props.state.user.description &&
|
||||||
<div>
|
<div>
|
||||||
<h4>
|
<h4>
|
||||||
{props.state.user.description}
|
{props.state.user.description}
|
||||||
@ -31,7 +33,8 @@ export default React.memo((props) => {
|
|||||||
<div>
|
<div>
|
||||||
<span><Icons.Users /> {props.state.followers.length} Followers</span>
|
<span><Icons.Users /> {props.state.followers.length} Followers</span>
|
||||||
</div>
|
</div>
|
||||||
{props.state.user?.badges.length > 0 &&
|
{
|
||||||
|
props.state.user?.badges.length > 0 &&
|
||||||
<div>
|
<div>
|
||||||
<span><Icons.Award /> {props.state.user?.badges.length} Badges collected</span>
|
<span><Icons.Award /> {props.state.user?.badges.length} Badges collected</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user