',
+ // })
+ // .catch(error => {
+ // console.warn('getCurrentUser failed', error);
+ // });
return (
<>
-
+
>
);
}
diff --git a/src/app/setting/user-info/page.tsx b/src/app/setting/user-info/page.tsx
index fac6cf0..e957acf 100644
--- a/src/app/setting/user-info/page.tsx
+++ b/src/app/setting/user-info/page.tsx
@@ -3,7 +3,7 @@ import React from 'react';
import { getUserData } from '../../actions/user';
import UserInfoClient from './UserInfoClient';
-export default async function DesktopPage() {
+export default async function UserinfoPage() {
const user = await getUserData();
const props = {
user,
diff --git a/src/layout/AppLayout/SideBar/Chats/styles.ts b/src/layout/AppLayout/SideBar/Chats/styles.ts
index e10c17a..682de8a 100644
--- a/src/layout/AppLayout/SideBar/Chats/styles.ts
+++ b/src/layout/AppLayout/SideBar/Chats/styles.ts
@@ -3,7 +3,6 @@ import { createStyles } from 'antd-style';
export const useStyles = createStyles(() => ({
chats: {
position: 'relative',
- overflowY: 'auto',
flex: '1 1 0%',
},
content: {
diff --git a/src/layout/AppLayout/SideBar/index.tsx b/src/layout/AppLayout/SideBar/index.tsx
index f9dd98a..ee146d4 100644
--- a/src/layout/AppLayout/SideBar/index.tsx
+++ b/src/layout/AppLayout/SideBar/index.tsx
@@ -10,8 +10,11 @@ import UserInfoBottom from './UserInfoBottom';
import { useStyles } from './styles';
export default function SideBar() {
- const { styles } = useStyles();
const pathname: any = usePathname();
+ const { styles } = useStyles();
+ const is_no_sidebar_route =
+ pathname.startsWith('/oidc/') || ['/oidc', '/logout'].includes(pathname);
+ if (is_no_sidebar_route) return <>>;
const showSidebar = ['/chat'].includes(pathname);
return (
diff --git a/src/layout/AppLayout/SideBar/styles.ts b/src/layout/AppLayout/SideBar/styles.ts
index 3a99004..5b4e30c 100644
--- a/src/layout/AppLayout/SideBar/styles.ts
+++ b/src/layout/AppLayout/SideBar/styles.ts
@@ -32,11 +32,13 @@ export const useStyles = createStyles(({ token }) => ({
'[dir="ltr"] &': {
left: 0,
borderRight: '1px solid',
+ zIndex: 9,
},
'[dir="rtl"] &': {
right: 0,
borderLeft: '1px solid',
+ zIndex: 9,
},
'&': {
diff --git a/src/styles/not-found-styles.ts b/src/styles/not-found-styles.ts
new file mode 100644
index 0000000..26d2fa2
--- /dev/null
+++ b/src/styles/not-found-styles.ts
@@ -0,0 +1,42 @@
+import { createStyles } from 'antd-style';
+
+export const useStyles = createStyles(() => {
+ return {
+ wrapper404: {
+ height: '100vh',
+ width: '100vw',
+ position: 'relative',
+ },
+
+ content: {
+ position: 'absolute',
+ top: '50%',
+ left: '50%',
+ transform: 'translate(-50%, -50%)',
+ textAlign: 'center',
+ },
+
+ imgBg: {
+ backgroundImage: 'url(/404/404.png)',
+ height: '420px',
+ width: '500px',
+ maxWidth: '100vw',
+ backgroundRepeat: 'no-repeat',
+ backgroundPosition: 'center',
+ marginBottom: '24px',
+ },
+
+ text: {
+ fontSize: '24px',
+ marginBottom: '24px',
+ },
+ btn: {
+ '.ant-btn': {
+ paddingLeft: '30px',
+ paddingRight: '30px',
+ fontSize: '16px',
+ height: 'auto',
+ },
+ },
+ };
+});