File tree Expand file tree Collapse file tree 3 files changed +23
-24
lines changed Expand file tree Collapse file tree 3 files changed +23
-24
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,13 @@ export class Header extends React.Component<IHeaderProps> {
26
26
return (
27
27
< React . Fragment >
28
28
< Col style = { { textAlign : 'left' } } span = { 12 } >
29
- < Icon
30
- style = { { marginTop : 10 , marginRight : 10 , textAlign : 'left' } }
31
- className = "trigger"
32
- type = { this . props . collapsed ? 'menu-unfold' : 'menu-fold' }
33
- onClick = { this . props . toggle }
34
- />
29
+ < Icon className = "trigger" type = { this . props . collapsed ? 'menu-unfold' : 'menu-fold' } onClick = { this . props . toggle } />
35
30
</ Col >
36
- < Col style = { { margin : 15 , marginLeft : 10 , textAlign : 'right' } } >
37
- < LanguageSelect />
31
+ < Col style = { { margin : '0px 15px 0px 15px' , marginLeft : 10 , textAlign : 'right' } } >
32
+ < LanguageSelect /> { ' ' }
38
33
< Dropdown overlay = { userDropdownMenu } trigger = { [ 'click' ] } >
39
- < Badge style = { { margin : 10 } } count = { 3 } >
40
- < Avatar style = { { margin : 10 } } size = { 48 } alt = { 'profile' } src = "https://sametkabay.com/images/smtkby/smtkby240.png" />
34
+ < Badge style = { { } } count = { 3 } >
35
+ < Avatar style = { { } } size = { 24 } alt = { 'profile' } src = "https://sametkabay.com/images/smtkby/smtkby240.png" />
41
36
</ Badge >
42
37
</ Dropdown >
43
38
</ Col >
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ class AppLayout extends React.Component<any> {
38
38
39
39
const layout = (
40
40
< Layout style = { { minHeight : '100vh' } } >
41
- < SiderMenu path = { path } onCollapse = { this . onCollapse } history = { history } collapsed = { collapsed } /> ;
41
+ < SiderMenu path = { path } onCollapse = { this . onCollapse } history = { history } collapsed = { collapsed } />
42
42
< Layout >
43
- < Layout . Header style = { { background : '#fff' , minHeight : 83 , padding : 0 } } >
43
+ < Layout . Header style = { { background : '#fff' , minHeight : 52 , padding : 0 } } >
44
44
< Header collapsed = { this . state . collapsed } toggle = { this . toggle } />
45
45
</ Layout . Header >
46
46
< Content style = { { margin : '0 16px' } } >
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ import utils from 'src/utils/utils';
5
5
import { userRouter } from '../Router/router.config' ;
6
6
import { Col } from 'antd' ;
7
7
// import "./UserLayout.css";
8
- import " ./UserLayout.less" ;
8
+ import ' ./UserLayout.less' ;
9
9
import Footer from '../Footer' ;
10
+ import LanguageSelect from '../LanguageSelect' ;
10
11
11
12
class UserLayout extends React . Component < any > {
12
13
render ( ) {
@@ -15,18 +16,21 @@ class UserLayout extends React.Component<any> {
15
16
} = this . props ;
16
17
return (
17
18
< DocumentTitle title = { utils . getPageTitle ( pathname ) } >
18
- < Col className = "container" >
19
- < Switch >
20
- { userRouter
21
- . filter ( ( item : any ) => ! item . isLayout )
22
- . map ( ( item : any , index : number ) => (
23
- < Route key = { index } path = { item . path } component = { item . component } exact = { item . exact } />
24
- ) ) }
19
+ < Col className = "container" >
20
+ < div className = { 'lang' } >
21
+ < LanguageSelect />
22
+ </ div >
23
+ < Switch >
24
+ { userRouter
25
+ . filter ( ( item : any ) => ! item . isLayout )
26
+ . map ( ( item : any , index : number ) => (
27
+ < Route key = { index } path = { item . path } component = { item . component } exact = { item . exact } />
28
+ ) ) }
25
29
26
- < Redirect from = "/user" to = "/user/login" />
27
- </ Switch >
28
- < Footer />
29
- </ Col >
30
+ < Redirect from = "/user" to = "/user/login" />
31
+ </ Switch >
32
+ < Footer />
33
+ </ Col >
30
34
</ DocumentTitle >
31
35
) ;
32
36
}
You can’t perform that action at this time.
0 commit comments