1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

state & hooks access reordering

This commit is contained in:
Matthias Kretschmann 2022-06-22 12:46:27 +01:00
parent c8ab4b18c5
commit 36bc097c0b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
}
.actionsCenter {
margin: auto !important;
margin: auto;
display: block;
}

View File

@ -64,7 +64,9 @@ export default function Compute({
}): ReactElement {
const { accountId, web3 } = useWeb3()
const { getOpcFeeForToken } = useMarketMetadata()
const { poolData } = usePool()
const newAbortController = useAbortController()
const newCancelToken = useCancelToken()
const [isJobStarting, setIsJobStarting] = useState(false)
const [error, setError] = useState<string>()
@ -80,8 +82,6 @@ export default function Compute({
const [validOrderTx, setValidOrderTx] = useState('')
const [validAlgorithmOrderTx, setValidAlgorithmOrderTx] = useState('')
const { poolData } = usePool()
const newCancelToken = useCancelToken()
const [isConsumablePrice, setIsConsumablePrice] = useState(true)
const [computeStatusText, setComputeStatusText] = useState('')
const [computeEnv, setComputeEnv] = useState<ComputeEnvironment>()