{"size": 976, "ext": "js", "max_stars_repo_path": "client/src/display/tab/myPriseArtical.js", "max_stars_repo_name": "WJZMC/articalstore", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/display/tab/myPriseArtical.js", "max_issues_repo_name": "WJZMC/articalstore", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/display/tab/myPriseArtical.js", "max_forks_repo_name": "WJZMC/articalstore", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.6976744186, "max_line_length": 93, "alphanum_fraction": 0.5717213115}

import React from 'react'
import ListExampleImage from '../common/sublist'
import contractFun from '../../utils/getContract'
import ipfs from '../../utils/ipfsApi';
import ContainerExampleContainer from '../common/artDetail'

class MyVoteArtical extends React.Component{

    state={
        all:[],
        selectArt:null,
    }
    componentDidMount=async ()=>{
        let tmp = await contractFun.getMyVoteArtical(true)
        let all = await ipfs.getRealData(tmp)
        this.setState({
            all
        })
    }



    clickArt=(selectArt)=>{
        this.setState({
            selectArt
        })
    }

    render(){
        let {all,selectArt}=this.state
        return(
            <div>
                <ListExampleImage all={all} clickArt={this.clickArt}/>
                <br></br><br></br>
                {selectArt&&<ContainerExampleContainer selectArt={selectArt} hidePS={true}/>}

            </div>
        )
    }
}

export default MyVoteArtical