forgeplus-react/src/pages/Competitions/Entered/Enteredmodel/SignUpSucessModel.tsx

38 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React, { Component, useState,useEffect } from 'react';
import { Modal, Button } from "antd";
import Success from './success.png'
import { Link } from 'react-router-dom';
//报名成功提示
function SignupSuccess({isShowmodel,isSignUphide}){
const[data,setData]=useState<any>([]);
useEffect(()=>{
const data=JSON.parse(localStorage.getItem('item'))
setData(data);
},[])
return(
<Modal
visible={isShowmodel}
footer={null}
centered={true}
onCancel={()=>{
isSignUphide(false);
}}
width={600}
maskClosable={false}
>
<div style={{display:"flex",alignItems:'center'}}>
<img src={Success} style={{marginRight:'35px',width:'60px',height:'60px'}}/> <span style={{fontSize:'24px',color:'#333333'}}></span>
</div>
<div style={{marginLeft:'100px',marginTop:'41px'}}>
<p className="task-hide"><span style={{color:"#333333"}}>{data?.competition}-{data?.sub_title}</span></p>
<p className="task-hide"><span style={{color:'#333333'}}>{data?.team_name}</span></p>
<p style={{marginTop:'40px'}}>logo </p>
</div>
<p style={{marginTop:'30px',textAlign:'center'}}>
<Link style={{marginRight:'20px'}} to={`/competitions/index/${data?.identify}`}><Button></Button></Link>
<Link style={{marginLeft:'20px'}} to={`/competitions/index/${data?.identify}/UpdateTeanname/${data?.team_id}`}><Button type="primary"></Button></Link>
</p>
</Modal>
)
}export default SignupSuccess;