Skip to content

Commit

Permalink
Remove active staking modal
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 6, 2024
1 parent fab629e commit b20b219
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/voting/SuperLike.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }:
const myGrillAddress = useMyAccount(state => state.address)
const myAddress = useMyAddress()
const sendEvent = useSendEvent()
const [isSigning, setIsSigning] = useState(false)
// const [isSigning, setIsSigning] = useState(false)

const { data: superLikeMessage } = useFetchSuperLikeMessage()

Expand All @@ -64,7 +64,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }:
const { isExist, canPostSuperLiked, validByCreatorMinStake } = useCanPostSuperLiked(post.id)

const [isOpenShouldStakeModal, setIsOpenShouldStakeModal] = useState(false)
const [isOpenActiveStakingModal, setIsOpenActiveStakingModal] = useState(false)
// const [isOpenActiveStakingModal, setIsOpenActiveStakingModal] = useState(false)

const { data: totalStake, loading: loadingTotalStake } = useFetchTotalStake(myAddress ?? '')
const { data: userReport } = useFetchUserRewardReport()
Expand Down Expand Up @@ -111,7 +111,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }:
const result = signatureVerify(message, signature, myGrillAddress)
if (!result.isValid) {
localStorage.removeItem(CURRENT_WEEK_SIG)
setIsOpenActiveStakingModal(true)
onClick()
return
}

Expand Down Expand Up @@ -197,7 +197,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }:
visible={isOpenShouldStakeModal}
onCancel={() => setIsOpenShouldStakeModal(false)}
/>
<CustomModal
{/* <CustomModal
visible={isOpenActiveStakingModal}
destroyOnClose
onCancel={() => setIsOpenActiveStakingModal(false)}
Expand Down Expand Up @@ -241,7 +241,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }:
Confirm
</Button>
</div>
</CustomModal>
</CustomModal> */}
</>
)
}
Expand Down

0 comments on commit b20b219

Please sign in to comment.