mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fixed import error for compute jobs
This commit is contained in:
parent
cfd5b6558e
commit
86a8c3b374
@ -36,14 +36,13 @@ exports.onCreatePage = async ({ page, actions }) => {
|
|||||||
const handleClientSideOnlyAsset = page.path.match(/^\/asset/)
|
const handleClientSideOnlyAsset = page.path.match(/^\/asset/)
|
||||||
const handleClientSideOnlyAccount = page.path.match(/^\/account/)
|
const handleClientSideOnlyAccount = page.path.match(/^\/account/)
|
||||||
|
|
||||||
if (handleClientSideOnlyAsset || handleClientSideOnlyAccount) {
|
if (handleClientSideOnlyAsset) {
|
||||||
page.matchPath = handleClientSideOnlyAsset
|
page.matchPath = '/asset/*'
|
||||||
? '/asset/*'
|
|
||||||
: handleClientSideOnlyAsset
|
|
||||||
? '/account/*'
|
|
||||||
: '/'
|
|
||||||
// Update the page.
|
// Update the page.
|
||||||
createPage(page)
|
createPage(page)
|
||||||
|
} else if (handleClientSideOnlyAccount) {
|
||||||
|
page.matchPath = '/account/*'
|
||||||
|
createPage(page)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ import { AssetSelectionAsset } from '../../../molecules/FormFields/AssetSelectio
|
|||||||
import AlgorithmDatasetsListForCompute from '../../AssetContent/AlgorithmDatasetsListForCompute'
|
import AlgorithmDatasetsListForCompute from '../../AssetContent/AlgorithmDatasetsListForCompute'
|
||||||
import { getPreviousOrders, getPrice } from '../../../../utils/subgraph'
|
import { getPreviousOrders, getPrice } from '../../../../utils/subgraph'
|
||||||
import AssetActionHistoryTable from '../../AssetActionHistoryTable'
|
import AssetActionHistoryTable from '../../AssetActionHistoryTable'
|
||||||
import ComputeJobs from '../../../pages/History/ComputeJobs'
|
import ComputeJobs from '../../../pages/Account/History/ComputeJobs'
|
||||||
|
|
||||||
const SuccessAction = () => (
|
const SuccessAction = () => (
|
||||||
<Button style="text" to="/account?defaultTab=ComputeJobs" size="small">
|
<Button style="text" to="/account?defaultTab=ComputeJobs" size="small">
|
||||||
|
Loading…
Reference in New Issue
Block a user