forgeplus-react/src/pages/Competitions/Entered/Assembly/TeamsNota.tsx

41 lines
1.6 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, { FC, useEffect, useState } from 'react';
import styles from '../index.less'
interface Nulldata{
setIsAddmodel:any
setJoin:any
HeaderDetail:any
user:any
dispatch:any
}
function Nulldata({setIsAddmodel,setJoin,HeaderDetail,user,dispatch}:Nulldata){
return(
<div className={styles.nullnodata}>
<img src={require('@/assets/images/Noentry.jpg')} />
<p style={{fontSize:'16px',color:'#333333'}} className="bootomtext"><span onClick={()=>{
if(HeaderDetail?.is_authentication&&!user?.userInfo?.authentication){
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth',
},
})
return
}
setJoin(true)
}} style={{color:'#1890FF',cursor: "pointer"}}></span><span onClick={()=>{
if(HeaderDetail?.is_authentication&&!user?.userInfo?.authentication){
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth',
},
})
return
}
setIsAddmodel(true)
}} style={{color:'#1890FF',cursor: "pointer"}} ></span></p>
<p style={{fontSize:'16px',color:'#333333'}}>/</p>
</div>
)
}export default Nulldata