X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/46751b9305a7e991d484494facd1f40790254d40..7e1669d2263cdf8e9066057fd126007b755ba7f5:/src/views-components/data-explorer/with-resources.tsx diff --git a/src/views-components/data-explorer/with-resources.tsx b/src/views-components/data-explorer/with-resources.tsx index 399a2d05..deeabe95 100644 --- a/src/views-components/data-explorer/with-resources.tsx +++ b/src/views-components/data-explorer/with-resources.tsx @@ -2,14 +2,14 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { connect } from 'react-redux'; -import { RootState } from '~/store/store'; -import { getResource } from '~/store/resources/resources'; -import { Resource, ResourceTypes } from '~/models/resource'; +import { RootState } from 'store/store'; +import { getResource } from 'store/resources/resources'; +import { Resource } from 'models/resource'; interface WithResourceProps { - resource?: ResourceTypes; + resource?: Resource; } export const withResource = (component: React.ComponentType) => @@ -19,7 +19,7 @@ export const withResource = (component: React.ComponentType { +export const getDataFromResource = (property: string, resource?: Resource) => { return resource && resource[property] ? resource[property] : '(none)'; };