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