forked from Gitlink/forgeplus-react
notice-show
This commit is contained in:
parent
afaef5f0d0
commit
e8bcebbf71
|
@ -29,12 +29,12 @@
|
|||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
margin-top: 60px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.markdown-body{
|
||||
box-shadow: 0px 0px 17px rgba(0,0,0,0.2);
|
||||
border-radius: 4px;
|
||||
margin-top: 17px!important;
|
||||
color: white;
|
||||
}
|
||||
.nContent{
|
||||
padding:20px 34px;
|
||||
|
|
|
@ -10,10 +10,11 @@ function SystemNotice({showNotice,system_notification,history,login,hideSystemNo
|
|||
const [ visible , setVisible ] = useState(false);
|
||||
|
||||
useEffect(()=>{
|
||||
|
||||
if(system_notification && !system_notification.is_read && showNotice && login){
|
||||
setVisible(true);
|
||||
}
|
||||
},[system_notification])
|
||||
},[system_notification,login])
|
||||
|
||||
function sureContinue() {
|
||||
if(login && ( system_notification && system_notification.id )){
|
||||
|
|
Loading…
Reference in New Issue