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:
parent
c8ab4b18c5
commit
36bc097c0b
@ -4,7 +4,7 @@
|
||||
}
|
||||
|
||||
.actionsCenter {
|
||||
margin: auto !important;
|
||||
margin: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
@ -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>()
|
||||
|
Loading…
Reference in New Issue
Block a user