Skip to content

Commit

Permalink
Merge pull request #85 from GenaDrop/stagging
Browse files Browse the repository at this point in the history
Stagging to main
  • Loading branch information
Ebube111 authored Jan 16, 2024
2 parents 181e369 + bea7626 commit 566c40c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
18 changes: 13 additions & 5 deletions apps/BosGenaDrop/widget/CPlanet/DAO/Members/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ function followUser(user, isFollowing) {
});
}

console.log(props?.tags)

return (
<Root>
<div className="topImage">
Expand Down Expand Up @@ -256,12 +258,18 @@ return (
<div className="groups">
<h1>Groups</h1>
<div className="tags">
{props.tags ? (
props.tags.map((data) => (
<p key={data} className="tag">
{data}
{props?.tags ? (
Array.isArray(props.tags) ? (
props.tags.map((data) => (
<p key={data} className="tag">
{data}
</p>
))
) : (
<p key={props.tags} className="tag">
{props.tags}
</p>
))
)
) : (
<p className="tag">Admin</p>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/BosGenaDrop/widget/CPlanet/DAO/Members/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const Root = styled.div`
return (
<Root>
{state.daoUsers &&
voters.map((data) => (
voters?.map((data) => (
<Widget
src="bos.genadrop.near/widget/CPlanet.DAO.Members.Card"
props={{
Expand Down
18 changes: 13 additions & 5 deletions build/BosGenaDrop/src/CPlanet/DAO/Members/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ function followUser(user, isFollowing) {
});
}

console.log(props?.tags)

return (
<Root>
<div className="topImage">
Expand Down Expand Up @@ -256,12 +258,18 @@ return (
<div className="groups">
<h1>Groups</h1>
<div className="tags">
{props.tags ? (
props.tags.map((data) => (
<p key={data} className="tag">
{data}
{props?.tags ? (
Array.isArray(props.tags) ? (
props.tags.map((data) => (
<p key={data} className="tag">
{data}
</p>
))
) : (
<p key={props.tags} className="tag">
{props.tags}
</p>
))
)
) : (
<p className="tag">Admin</p>
)}
Expand Down
2 changes: 1 addition & 1 deletion build/BosGenaDrop/src/CPlanet/DAO/Members/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const Root = styled.div`
return (
<Root>
{state.daoUsers &&
voters.map((data) => (
voters?.map((data) => (
<Widget
src="bos.genadrop.near/widget/CPlanet.DAO.Members.Card"
props={{
Expand Down

0 comments on commit 566c40c

Please sign in to comment.