|
|
|
@ -66,6 +66,12 @@ class CompetitionsIndex extends Component{
|
|
|
|
|
this.getdata(e.key,page)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
setcompetitonurl=(url)=>{
|
|
|
|
|
|
|
|
|
|
if(url!=null){
|
|
|
|
|
this.props.history.replace(url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {datas,page,count}=this.state;
|
|
|
|
|
|
|
|
|
@ -123,7 +129,9 @@ class CompetitionsIndex extends Component{
|
|
|
|
|
size="large"
|
|
|
|
|
dataSource={datas&&datas}
|
|
|
|
|
renderItem={(item,key) => (
|
|
|
|
|
<Link to={item.competition_status==="ended"?"":`/newcompetitions/${item.identifier}/common_header`}>
|
|
|
|
|
<div onClick={()=>this.setcompetitonurl(item.competition_status==="ended"?null:item.competition_status==="nearly_published"?`/newcompetitions/${item.identifier}/common_header`:item.competition_status==="progressing"?`/newcompetitions/${item.identifier}/common_header`:null)}
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<div className={"CompetitionsList"} >
|
|
|
|
|
{item.description===null||item.description===undefined||item.description===""?<style>
|
|
|
|
|
{
|
|
|
|
@ -179,7 +187,7 @@ class CompetitionsIndex extends Component{
|
|
|
|
|
{item.description}
|
|
|
|
|
</List.Item>
|
|
|
|
|
</div>
|
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|