1
1
import { SafetyOutlined , SettingOutlined , UserOutlined } from "@ant-design/icons" ;
2
- import { Layout , Menu } from "antd" ;
2
+ import { Breadcrumb , Layout , Menu } from "antd" ;
3
3
import type { MenuItemGroupType } from "antd/es/menu/interface" ;
4
4
import { Route , Switch , useHistory , useLocation } from "react-router-dom" ;
5
5
import AuthTokenView from "./auth_token_view" ;
@@ -43,9 +43,10 @@ function AccountSettingsView() {
43
43
} ,
44
44
] ;
45
45
46
+ const subPageBreadcrumb = selectedKey . charAt ( 0 ) . toUpperCase ( ) + selectedKey . slice ( 1 ) ;
47
+
46
48
return (
47
49
< Layout style = { { minHeight : "calc(100vh - 64px)" } } className = "container" >
48
- < h1 > Account Settings</ h1 >
49
50
< Layout >
50
51
< Sider width = { 200 } >
51
52
< Menu
@@ -56,7 +57,11 @@ function AccountSettingsView() {
56
57
onClick = { ( { key } ) => history . push ( `/account/${ key } ` ) }
57
58
/>
58
59
</ Sider >
59
- < Content style = { { padding : "24px" , paddingTop : 0 , minHeight : 280 } } >
60
+ < Content style = { { padding : "24px" , paddingTop : 0 , minHeight : 280 , maxWidth : 1000 } } >
61
+ < Breadcrumb style = { { marginBottom : "16px" , padding : "8px 0" } } >
62
+ < Breadcrumb . Item > Account Settings</ Breadcrumb . Item >
63
+ < Breadcrumb . Item > { subPageBreadcrumb } </ Breadcrumb . Item >
64
+ </ Breadcrumb >
60
65
< Switch >
61
66
< Route path = "/account/profile" component = { ProfileView } />
62
67
< Route path = "/account/password" component = { ChangePasswordView } />
0 commit comments