mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
lint fix
This commit is contained in:
parent
23aced5f9c
commit
38691369d4
@ -19,7 +19,7 @@ export default function JobTeaser({ job }: { job: any }) {
|
|||||||
const asset = await (ocean as any).assets.resolve(did)
|
const asset = await (ocean as any).assets.resolve(did)
|
||||||
const { attributes } = asset.findServiceByType('metadata')
|
const { attributes } = asset.findServiceByType('metadata')
|
||||||
const { main } = attributes
|
const { main } = attributes
|
||||||
const link = "/asset/did:op:" + did
|
const link = '/asset/did:op:' + did
|
||||||
setAssetName(main.name)
|
setAssetName(main.name)
|
||||||
setAssetUrl(link as any)
|
setAssetUrl(link as any)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -33,7 +33,9 @@ export default function JobTeaser({ job }: { job: any }) {
|
|||||||
return (
|
return (
|
||||||
<article className={styles.assetList}>
|
<article className={styles.assetList}>
|
||||||
<div className={styles.listRow}>
|
<div className={styles.listRow}>
|
||||||
<h1><a href={assetUrl}>{assetName}</a></h1>
|
<h1>
|
||||||
|
<a href={assetUrl}>{assetName}</a>
|
||||||
|
</h1>
|
||||||
<div
|
<div
|
||||||
className={styles.date}
|
className={styles.date}
|
||||||
title={`Created on ${job.dateCreated}`}
|
title={`Created on ${job.dateCreated}`}
|
||||||
|
@ -153,7 +153,7 @@ export default function AssetsJobs({ ddo, ocean }: JobsProps) {
|
|||||||
{isPublished ? (
|
{isPublished ? (
|
||||||
<div className={styles.success}>
|
<div className={styles.success}>
|
||||||
<p>Your job started!</p>
|
<p>Your job started!</p>
|
||||||
<Button link to={'/history/'}>
|
<Button link to="/history/">
|
||||||
Watch the progress in the history page.
|
Watch the progress in the history page.
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Account } from '@oceanprotocol/squid'
|
import { Account } from '@oceanprotocol/squid'
|
||||||
|
|
||||||
|
|
||||||
export async function getUserJobs(ocean: any, account: string) {
|
export async function getUserJobs(ocean: any, account: string) {
|
||||||
try {
|
try {
|
||||||
let account: Account
|
let account: Account
|
||||||
@ -8,10 +7,8 @@ export async function getUserJobs(ocean: any, account: string) {
|
|||||||
|
|
||||||
await account.authenticate()
|
await account.authenticate()
|
||||||
const jobList = await ocean.compute.status(account)
|
const jobList = await ocean.compute.status(account)
|
||||||
return jobList;
|
return jobList
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user