Skip to content

Commit

Permalink
Merge pull request #21 from GenaDrop:stagging
Browse files Browse the repository at this point in the history
fix: gateway recognition logic for communities tab
  • Loading branch information
Jikugodwill authored Dec 4, 2023
2 parents 64b42e0 + fb1c5bf commit c5e4d81
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/BosGenaDrop/widget/CPlanet/DAO/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ return (
</Tags>
<Button>
<a
href={`#/bos.genadrop.near/widget/CPlanet.Index?tab=daoProfile&daoId=${props.daoId}`}
href={
props.isGateway
? `#/bos.genadrop.near/widget/CPlanet.DAO.Index?daoId=${props.daoId}`
: `#/bos.genadrop.near/widget/CPlanet.Index?tab=daoProfile&daoId=${props.daoId}`
}
onClick={() => props.onButtonClick()}
>
<button>View DAO</button>
Expand Down
2 changes: 2 additions & 0 deletions apps/BosGenaDrop/widget/CPlanet/DAO/Explore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ return (
daoId: data.daoId,
daoContractId: data.contractId,
}),
isGateway: props.isGateway,
}}
src="bos.genadrop.near/widget/CPlanet.DAO.Card"
/>
Expand All @@ -187,6 +188,7 @@ return (
daoId: data.daoId,
daoContractId: data.contractId,
}),
isGateway: props.isGateway,
}}
src="bos.genadrop.near/widget/CPlanet.DAO.Card"
/>
Expand Down
6 changes: 5 additions & 1 deletion build/BosGenaDrop/src/CPlanet/DAO/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ return (
</Tags>
<Button>
<a
href={`#/bos.genadrop.near/widget/CPlanet.Index?tab=daoProfile&daoId=${props.daoId}`}
href={
props.isGateway
? `#/bos.genadrop.near/widget/CPlanet.DAO.Index?daoId=${props.daoId}`
: `#/bos.genadrop.near/widget/CPlanet.Index?tab=daoProfile&daoId=${props.daoId}`
}
onClick={() => props.onButtonClick()}
>
<button>View DAO</button>
Expand Down
2 changes: 2 additions & 0 deletions build/BosGenaDrop/src/CPlanet/DAO/Explore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ return (
daoId: data.daoId,
daoContractId: data.contractId,
}),
isGateway: props.isGateway,
}}
src="bos.genadrop.near/widget/CPlanet.DAO.Card"
/>
Expand All @@ -187,6 +188,7 @@ return (
daoId: data.daoId,
daoContractId: data.contractId,
}),
isGateway: props.isGateway,
}}
src="bos.genadrop.near/widget/CPlanet.DAO.Card"
/>
Expand Down

0 comments on commit c5e4d81

Please sign in to comment.