@@ -30,7 +30,6 @@ import {
3030} from "../../utils/constants" ;
3131import RegisterCheckboxes from "../domains/registerCheckboxes" ;
3232import { utils } from "starknetid.js" ;
33- import RegisterConfirmationModal from "../UI/registerConfirmationModal" ;
3433import ConnectButton from "../UI/connectButton" ;
3534import {
3635 getAutoRenewAllowance ,
@@ -57,7 +56,6 @@ const Subscription: FunctionComponent = () => {
5756 const [ displayedCurrencies , setDisplayedCurrencies ] = useState <
5857 CurrencyType [ ]
5958 > ( [ CurrencyType . ETH , CurrencyType . STRK ] ) ;
60- const [ isTxModalOpen , setIsTxModalOpen ] = useState ( false ) ;
6159 const [ termsBox , setTermsBox ] = useState < boolean > ( true ) ;
6260 const [ renewalBox , setRenewalBox ] = useState < boolean > ( true ) ;
6361 const [ salt , setSalt ] = useState < string | undefined > ( ) ;
@@ -131,7 +129,7 @@ const Subscription: FunctionComponent = () => {
131129 status : "pending" ,
132130 } ,
133131 } ) ;
134- setIsTxModalOpen ( true ) ;
132+ router . push ( "/subscriptionConfirmation" ) ;
135133 // eslint-disable-next-line react-hooks/exhaustive-deps
136134 } , [ autorenewData ] ) ; // We only need renewData here because we don't want to send the metadata twice (we send it once the tx is sent)
137135
@@ -387,11 +385,6 @@ const Subscription: FunctionComponent = () => {
387385 </ div >
388386 </ div >
389387 < img className = { styles . image } src = "/visuals/register.webp" />
390- < RegisterConfirmationModal
391- txHash = { autorenewData ?. transaction_hash }
392- isTxModalOpen = { isTxModalOpen }
393- closeModal = { ( ) => window . history . back ( ) }
394- />
395388 < Notification
396389 visible = { currencyError }
397390 onClose = { ( ) => setCurrencyError ( false ) }
0 commit comments