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