kaori 4 лет назад
Родитель
Сommit
97fbe12bd4
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      packages/app/src/components/Admin/AdminHome/AdminHome.jsx

+ 1 - 3
packages/app/src/components/Admin/AdminHome/AdminHome.jsx

@@ -36,8 +36,6 @@ const AdminHome = (props) => {
 
   const { isV5Compatible } = adminHomeContainer.state;
 
-  let alertStyle = 'alert-info';
-  if (isV5Compatible == null) alertStyle = 'alert-warning';
 
   return (
     <>
@@ -45,7 +43,7 @@ const AdminHome = (props) => {
         // Alert message will be displayed in case that V5 migration has not been compleated
         (isV5Compatible != null && !isV5Compatible)
           && (
-            <div className={`alert ${alertStyle}`}>
+          <div className={`alert ${isV5Compatible == null ? 'alert-warning' : 'alert-info'}`}>
               {t('admin:v5_page_migration.migration_desc')}
               <a className="btn-link" href="/admin/app" rel="noopener noreferrer">
                 <i className="fa fa-link ml-1" aria-hidden="true"></i>