@@ -4,14 +4,14 @@ import {
44 LogoutOutlined ,
55 ReadOutlined ,
66 UserOutlined ,
7- } from " @ant-design/icons" ;
8- import { Layout , Menu , message , Row } from " antd" ;
9- import type { ReactNode } from " react" ;
10- import { Outlet } from " react-router-dom" ;
11- import { logout } from " @/services/auth" ;
12- import { useUserInfo } from " @/utils/hooks" ;
13- import Footer from " ./footer" ;
14- import Sider from " ./sider" ;
7+ } from ' @ant-design/icons' ;
8+ import { Layout , Menu , message , Row } from ' antd' ;
9+ import type { ReactNode } from ' react' ;
10+ import { Outlet } from ' react-router-dom' ;
11+ import { logout } from ' @/services/auth' ;
12+ import { useUserInfo } from ' @/utils/hooks' ;
13+ import Footer from ' ./footer' ;
14+ import Sider from ' ./sider' ;
1515
1616interface Style {
1717 header : React . CSSProperties ;
@@ -32,7 +32,7 @@ const MainLayout = () => {
3232 selectable = { false }
3333 items = { [
3434 {
35- key : " issues" ,
35+ key : ' issues' ,
3636 icon : < CommentOutlined /> ,
3737 label : (
3838 < ExtLink href = "https://github.com/reactnativecn/react-native-pushy/issues" >
@@ -41,7 +41,7 @@ const MainLayout = () => {
4141 ) ,
4242 } ,
4343 {
44- key : " document" ,
44+ key : ' document' ,
4545 icon : < ReadOutlined /> ,
4646 label : (
4747 < ExtLink href = "https://pushy.reactnative.cn/docs/getting-started.html" >
@@ -50,7 +50,7 @@ const MainLayout = () => {
5050 ) ,
5151 } ,
5252 {
53- key : " about" ,
53+ key : ' about' ,
5454 icon : < InfoCircleOutlined /> ,
5555 label : (
5656 < ExtLink href = "https://reactnative.cn/about.html" >
@@ -61,17 +61,17 @@ const MainLayout = () => {
6161 ...( user
6262 ? [
6363 {
64- key : " user" ,
64+ key : ' user' ,
6565 icon : < UserOutlined /> ,
6666 label : user . name ,
6767 children : [
6868 {
69- key : " logout" ,
69+ key : ' logout' ,
7070 icon : < LogoutOutlined /> ,
71- label : " 退出登录" ,
71+ label : ' 退出登录' ,
7272 onClick : ( ) => {
7373 logout ( ) ;
74- message . info ( " 您已退出登录" ) ;
74+ message . info ( ' 您已退出登录' ) ;
7575 } ,
7676 } ,
7777 ] ,
@@ -113,17 +113,17 @@ const ExtLink = ({ children, href }: ExtLinkProps) => (
113113
114114const style : Style = {
115115 header : {
116- background : " #fff" ,
116+ background : ' #fff' ,
117117 height : 48 ,
118- lineHeight : " 46px" ,
119- boxShadow : " 2px 1px 4px rgba(0, 21, 41, 0.08)" ,
118+ lineHeight : ' 46px' ,
119+ boxShadow : ' 2px 1px 4px rgba(0, 21, 41, 0.08)' ,
120120 zIndex : 1 ,
121121 } ,
122122 body : {
123- overflow : " auto" ,
124- position : " relative" ,
125- display : " flex" ,
126- flexDirection : " column" ,
123+ overflow : ' auto' ,
124+ position : ' relative' ,
125+ display : ' flex' ,
126+ flexDirection : ' column' ,
127127 paddingBottom : 0 ,
128128 } ,
129129} ;
0 commit comments