mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Revert "Adding connect wallet button to submit page"
This reverts commit e24de81b65
.
This commit is contained in:
parent
d65161ef41
commit
cd5ff7cf73
@ -5,7 +5,6 @@ import { FormikContextType, useFormikContext } from 'formik'
|
|||||||
import { FormPublishData } from '../_types'
|
import { FormPublishData } from '../_types'
|
||||||
import { wizardSteps } from '../_constants'
|
import { wizardSteps } from '../_constants'
|
||||||
import SuccessConfetti from '@shared/SuccessConfetti'
|
import SuccessConfetti from '@shared/SuccessConfetti'
|
||||||
import { useWeb3 } from '../../../@context/Web3'
|
|
||||||
|
|
||||||
export default function Actions({
|
export default function Actions({
|
||||||
scrollToRef,
|
scrollToRef,
|
||||||
@ -22,15 +21,6 @@ export default function Actions({
|
|||||||
setFieldValue
|
setFieldValue
|
||||||
}: FormikContextType<FormPublishData> = useFormikContext()
|
}: FormikContextType<FormPublishData> = useFormikContext()
|
||||||
|
|
||||||
const { connect } = useWeb3()
|
|
||||||
|
|
||||||
async function handleActivation(e: FormEvent<HTMLButtonElement>) {
|
|
||||||
// prevent accidentially submitting a form the button might be in
|
|
||||||
e.preventDefault()
|
|
||||||
|
|
||||||
await connect()
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleNext(e: FormEvent) {
|
function handleNext(e: FormEvent) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
setFieldValue('user.stepCurrent', values.user.stepCurrent + 1)
|
setFieldValue('user.stepCurrent', values.user.stepCurrent + 1)
|
||||||
@ -75,10 +65,6 @@ export default function Actions({
|
|||||||
>
|
>
|
||||||
Continue
|
Continue
|
||||||
</Button>
|
</Button>
|
||||||
) : values.user.accountId === '' || !isValid ? (
|
|
||||||
<Button type="submit" style="primary" onClick={handleActivation}>
|
|
||||||
Connect Wallet
|
|
||||||
</Button>
|
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
|
Loading…
Reference in New Issue
Block a user