李志伟 3 år sedan
förälder
incheckning
fa3caeddef
1 ändrade filer med 1 tillägg och 13 borttagningar
  1. 1
    13
      src/components/RightContent/index.jsx

+ 1
- 13
src/components/RightContent/index.jsx Visa fil

@@ -1,22 +1,10 @@
1 1
 import { Space } from 'antd';
2
-import React from 'react';
3
-import { useModel } from 'umi';
4 2
 import Avatar from './AvatarDropdown';
5 3
 import styles from './index.less';
6 4
 
7 5
 const GlobalHeaderRight = () => {
8
-  const { initialState } = useModel('@@initialState');
9
-
10
-  if (!initialState || !initialState.settings) {
11
-    return null;
12
-  }
13
-
14
-  const { navTheme, layout } = initialState.settings;
15 6
   let className = styles.right;
16
-
17
-  if ((navTheme === 'dark' && layout === 'top') || layout === 'mix') {
18
-    className = `${styles.right}  ${styles.dark}`;
19
-  }
7
+  className = `${styles.right}  ${styles.dark}`;
20 8
 
21 9
   return (
22 10
     <Space className={className}>