Skip to content

Commit

Permalink
Merge pull request #547 from us3r-network/F-likeStatus-shixuewen
Browse files Browse the repository at this point in the history
feat: update like status
  • Loading branch information
sin-bufan authored Oct 11, 2024
2 parents 6a64420 + bf9983b commit 90ac4f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function ProposalLikeButton({
castHash: castHash,
});
upsertOneToProposals(castHash as any, {
status: ProposalState.Accepted,
status: ProposalState.Disputed,
});
}}
{...props}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ function ProposalStatusActions({
// tokenInfo={updatedTokenInfo}
// />
// );
case ProposalState.Accepted:
return (
<ProposalLikeButton
cast={cast}
channel={channel}
proposal={updatedProposal}
tokenInfo={updatedTokenInfo}
/>
);
// case ProposalState.Accepted:
// if (Number(roundIndex) <= 1) {
// return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function useProxyUserToCreateProposal({
// });

upsertOneToProposals(castHash as any, {
status: ProposalState.Accepted,
status: ProposalState.Disputed,
});
// } else {
// throw new Error(msg);
Expand Down

0 comments on commit 90ac4f8

Please sign in to comment.