|
@@ -9,8 +9,10 @@ import ExitModal from '@/components/ExitModal';
|
|
|
import { showNotImplemented } from '@/utils/notificationHelper';
|
|
import { showNotImplemented } from '@/utils/notificationHelper';
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
import logo from '@/assets/imgs/bzylogo.png';
|
|
import logo from '@/assets/imgs/bzylogo.png';
|
|
|
|
|
+import { useAppSelector } from '@/states/store';
|
|
|
|
|
|
|
|
const BottomBar: React.FC = () => {
|
|
const BottomBar: React.FC = () => {
|
|
|
|
|
+ const { themeType, currentTheme } = useAppSelector((state) => state.theme);
|
|
|
const login = useSelector((state: RootState) => isLoggedIn(state.userInfo));
|
|
const login = useSelector((state: RootState) => isLoggedIn(state.userInfo));
|
|
|
const username = useSelector((state: RootState) => state.userInfo.name);
|
|
const username = useSelector((state: RootState) => state.userInfo.name);
|
|
|
const avatarUrl = useSelector((state: RootState) => state.userInfo.avatar);
|
|
const avatarUrl = useSelector((state: RootState) => state.userInfo.avatar);
|
|
@@ -71,7 +73,7 @@ const BottomBar: React.FC = () => {
|
|
|
module="module-security"
|
|
module="module-security"
|
|
|
name="user-not-login"
|
|
name="user-not-login"
|
|
|
userId="user-A"
|
|
userId="user-A"
|
|
|
- theme="default"
|
|
|
|
|
|
|
+ theme={themeType}
|
|
|
size="2x"
|
|
size="2x"
|
|
|
state="normal"
|
|
state="normal"
|
|
|
/>
|
|
/>
|
|
@@ -81,7 +83,7 @@ const BottomBar: React.FC = () => {
|
|
|
module="module-common"
|
|
module="module-common"
|
|
|
name="user-not-login"
|
|
name="user-not-login"
|
|
|
userId="user-A"
|
|
userId="user-A"
|
|
|
- theme="default"
|
|
|
|
|
|
|
+ theme={themeType}
|
|
|
size="2x"
|
|
size="2x"
|
|
|
state="normal"
|
|
state="normal"
|
|
|
/>
|
|
/>
|
|
@@ -106,7 +108,7 @@ const BottomBar: React.FC = () => {
|
|
|
module="module-common"
|
|
module="module-common"
|
|
|
name="btn_3DCam_AIView"
|
|
name="btn_3DCam_AIView"
|
|
|
userId="user-A"
|
|
userId="user-A"
|
|
|
- theme="default"
|
|
|
|
|
|
|
+ theme={themeType}
|
|
|
size="2x"
|
|
size="2x"
|
|
|
state="normal"
|
|
state="normal"
|
|
|
/>
|
|
/>
|