File tree Expand file tree Collapse file tree
frontend/src/layouts/AppLayout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import { useLocation, useMatch } from 'react-router-dom';
44
55import { SideNavigationProps } from 'components' ;
66
7- import { DISCORD_URL , DOCS_URL } from 'consts' ;
87import { useAppSelector , usePermissionGuard } from 'hooks' ;
9- import { goToUrl } from 'libs' ;
108import { ROUTES } from 'routes' ;
119import { useGetServerInfoQuery } from 'services/server' ;
1210import { GlobalUserRole } from 'types' ;
@@ -74,29 +72,6 @@ export const useSideNavigation = () => {
7472
7573 { type : 'divider' } ,
7674
77- {
78- type : 'section-group' ,
79- title : t ( 'navigation.resources' ) ,
80- items : [
81- {
82- type : 'link' ,
83- text : t ( 'common.docs' ) ,
84- external : true ,
85- href : DOCS_URL ,
86- // onClick: () => goToUrl(DOCS_URL, true),
87- } ,
88- {
89- type : 'link' ,
90- text : t ( 'common.discord' ) ,
91- external : true ,
92- href : DISCORD_URL ,
93- onClick : ( ) => goToUrl ( DISCORD_URL , true ) ,
94- } ,
95- ] ,
96- } ,
97-
98- { type : 'divider' } ,
99-
10075 {
10176 type : 'link' ,
10277 href : '#version' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717 TopNavigation ,
1818} from 'components' ;
1919
20+ import { DISCORD_URL , DOCS_URL } from 'consts' ;
2021import { useAppDispatch , useAppSelector } from 'hooks' ;
2122import { goToUrl } from 'libs' ;
2223import { ROUTES } from 'routes' ;
@@ -159,6 +160,18 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
159160 iconSvg : < ThemeIcon /> ,
160161 onClick : onChangeSystemModeToggle ,
161162 } ,
163+ {
164+ type : 'button' ,
165+ text : t ( 'common.docs' ) ,
166+ external : true ,
167+ onClick : ( ) => goToUrl ( DOCS_URL , true ) ,
168+ } ,
169+ {
170+ type : 'button' ,
171+ text : t ( 'common.discord' ) ,
172+ external : true ,
173+ onClick : ( ) => goToUrl ( DISCORD_URL , true ) ,
174+ } ,
162175 {
163176 'data-class' : 'user-menu' ,
164177 type : 'menu-dropdown' ,
You can’t perform that action at this time.
0 commit comments