Commit cf5168c3 by zhaochengxiang

资产详情再次调整

parent 2e43d427
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { Spin, Tabs, Descriptions, Divider } from "antd"; import { Spin, Descriptions, Divider } from "antd";
import MetadataInfo from './MetadataInfo'; import MetadataInfo from './MetadataInfo';
import { highlightSearchContentByTerms } from '../../../../util'; import { highlightSearchContentByTerms } from '../../../../util';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
const { TabPane } = Tabs;
const AssetDetail = (props)=>{ const AssetDetail = (props)=>{
const { id, terms } = props; const { id, terms } = props;
const [ asset, setAsset ] = useState(''); const [ asset, setAsset ] = useState('');
const [ types, setTypes ] = useState([]); const [ types, setTypes ] = useState([]);
const [ loading, setLoading ] = useState(false); const [ loading, setLoading ] = useState(false);
const [ tabKey, setTabKey ] = useState('0');
useEffect(() => { useEffect(() => {
...@@ -49,10 +46,6 @@ const AssetDetail = (props)=>{ ...@@ -49,10 +46,6 @@ const AssetDetail = (props)=>{
}) })
} }
const onTabChange = (key) => {
setTabKey(key);
}
return( return(
<Spin spinning={loading}> <Spin spinning={loading}>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment