diff --git a/src/lib/msgUtils.js b/src/lib/msgUtils.js index cf9a2db..bd32149 100644 --- a/src/lib/msgUtils.js +++ b/src/lib/msgUtils.js @@ -600,7 +600,7 @@ export const whatsappSupportFileTypes = { */ export const handleNotification = (title, _options) => { if (!("Notification" in window)) { - alert("This browser does not support desktop notification"); + // alert("This browser does not support desktop notification"); return false; } var notification; diff --git a/src/views/MobileApp.jsx b/src/views/MobileApp.jsx index 27b6c12..7467c49 100644 --- a/src/views/MobileApp.jsx +++ b/src/views/MobileApp.jsx @@ -3,7 +3,7 @@ import '@/assets/App.css' import AppLogo from '@/assets/logo-gh.png' import { useThemeContext } from '@/stores/ThemeContext' import useAuthStore from '@/stores/AuthStore' -import { Col, Layout, Row, Typography, theme, Space, Avatar, Dropdown, } from 'antd' +import { Col, Layout, Row, Typography, theme, Space, Avatar, Dropdown, Flex, } from 'antd' import { DownOutlined } from '@ant-design/icons' import { NavLink, Outlet, Link } from 'react-router-dom' const { Header, Footer, Content } = Layout @@ -45,7 +45,7 @@ function MobileApp() { return ( -
+
@@ -64,9 +64,10 @@ function MobileApp() { > e.preventDefault()} style={{ color: colorPrimary }}> {loginUser?.username?.substring(1)}{loginUser.username} + src={loginUser.avatarUrl}>{loginUser?.username?.substring(1)}{loginUser.username} + {!("Notification" in window) && 🔕}