From b20b2193251da73c5a70ce1540c82b9a718060b5 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Wed, 6 Mar 2024 20:54:12 +0700 Subject: [PATCH] Remove active staking modal --- src/components/voting/SuperLike.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/voting/SuperLike.tsx b/src/components/voting/SuperLike.tsx index 6f5db7715..2018da38a 100644 --- a/src/components/voting/SuperLike.tsx +++ b/src/components/voting/SuperLike.tsx @@ -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() @@ -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() @@ -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 } @@ -197,7 +197,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }: visible={isOpenShouldStakeModal} onCancel={() => setIsOpenShouldStakeModal(false)} /> - setIsOpenActiveStakingModal(false)} @@ -241,7 +241,7 @@ export default function SuperLike({ post, iconClassName, isComment, ...props }: Confirm - + */} ) }