File tree Expand file tree Collapse file tree 8 files changed +40
-38
lines changed Expand file tree Collapse file tree 8 files changed +40
-38
lines changed Original file line number Diff line number Diff line change 1
- import { Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Menu } from 'antd' ;
2
3
import * as React from 'react' ;
3
4
4
5
import Drawer from 'rc-drawer' ;
@@ -33,7 +34,7 @@ class Demo extends React.Component<any, { show: boolean }> {
33
34
key = "sub1"
34
35
title = {
35
36
< span >
36
- < Icon type = "mail" />
37
+ < MailOutlined />
37
38
< span > Navigation One</ span >
38
39
</ span >
39
40
}
@@ -51,7 +52,7 @@ class Demo extends React.Component<any, { show: boolean }> {
51
52
key = "sub2"
52
53
title = {
53
54
< span >
54
- < Icon type = "appstore" />
55
+ < AppstoreOutlined />
55
56
< span > Navigation Two</ span >
56
57
</ span >
57
58
}
@@ -67,7 +68,7 @@ class Demo extends React.Component<any, { show: boolean }> {
67
68
key = "sub4"
68
69
title = {
69
70
< span >
70
- < Icon type = "setting" />
71
+ < SettingOutlined />
71
72
< span > Navigation Three</ span >
72
73
</ span >
73
74
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-console,react/no-multi-comp */
2
- import { Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Menu } from 'antd' ;
3
3
import * as React from 'react' ;
4
4
5
5
import Drawer from 'rc-drawer' ;
@@ -59,7 +59,7 @@ class Demo extends React.Component {
59
59
key = "sub1"
60
60
title = {
61
61
< span >
62
- < Icon type = "mail" />
62
+ < MailOutlined />
63
63
< span > Navigation One</ span >
64
64
</ span >
65
65
}
@@ -77,7 +77,7 @@ class Demo extends React.Component {
77
77
key = "sub2"
78
78
title = {
79
79
< span >
80
- < Icon type = "appstore" />
80
+ < AppstoreOutlined />
81
81
< span > Navigation Two</ span >
82
82
</ span >
83
83
}
@@ -93,7 +93,7 @@ class Demo extends React.Component {
93
93
key = "sub4"
94
94
title = {
95
95
< span >
96
- < Icon type = "setting" />
96
+ < SettingOutlined />
97
97
< span > Navigation Three</ span >
98
98
</ span >
99
99
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-console,react/no-multi-comp */
2
- import { Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Menu } from 'antd' ;
3
3
import * as React from 'react' ;
4
4
5
5
import Drawer from 'rc-drawer' ;
@@ -37,7 +37,7 @@ class DrawerTester extends React.Component {
37
37
key = "sub1"
38
38
title = {
39
39
< span >
40
- < Icon type = "mail" />
40
+ < MailOutlined />
41
41
< span > Navigation One</ span >
42
42
</ span >
43
43
}
@@ -55,7 +55,7 @@ class DrawerTester extends React.Component {
55
55
key = "sub2"
56
56
title = {
57
57
< span >
58
- < Icon type = "appstore" />
58
+ < AppstoreOutlined />
59
59
< span > Navigation Two</ span >
60
60
</ span >
61
61
}
@@ -71,7 +71,7 @@ class DrawerTester extends React.Component {
71
71
key = "sub4"
72
72
title = {
73
73
< span >
74
- < Icon type = "setting" />
74
+ < SettingOutlined />
75
75
< span > Navigation Three</ span >
76
76
</ span >
77
77
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-console,react/no-multi-comp */
2
- import { Button , Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Button , Menu } from 'antd' ;
3
3
import * as React from 'react' ;
4
4
5
5
import Drawer from 'rc-drawer' ;
@@ -35,7 +35,7 @@ class Demo extends React.Component {
35
35
key = "sub1"
36
36
title = {
37
37
< span >
38
- < Icon type = "mail" />
38
+ < MailOutlined />
39
39
< span > Navigation One</ span >
40
40
</ span >
41
41
}
@@ -53,7 +53,7 @@ class Demo extends React.Component {
53
53
key = "sub2"
54
54
title = {
55
55
< span >
56
- < Icon type = "appstore" />
56
+ < AppstoreOutlined />
57
57
< span > Navigation Two</ span >
58
58
</ span >
59
59
}
@@ -69,7 +69,7 @@ class Demo extends React.Component {
69
69
key = "sub4"
70
70
title = {
71
71
< span >
72
- < Icon type = "setting" />
72
+ < SettingOutlined />
73
73
< span > Navigation Three</ span >
74
74
</ span >
75
75
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-console,react/no-multi-comp */
2
- import { Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Menu } from 'antd' ;
3
3
import * as React from 'react' ;
4
4
5
5
import Drawer from 'rc-drawer' ;
@@ -38,7 +38,7 @@ class Demo extends React.Component {
38
38
key = "sub1"
39
39
title = {
40
40
< span >
41
- < Icon type = "mail" />
41
+ < MailOutlined />
42
42
< span > Navigation One</ span >
43
43
</ span >
44
44
}
@@ -56,7 +56,7 @@ class Demo extends React.Component {
56
56
key = "sub2"
57
57
title = {
58
58
< span >
59
- < Icon type = "appstore" />
59
+ < AppstoreOutlined />
60
60
< span > Navigation Two</ span >
61
61
</ span >
62
62
}
@@ -72,7 +72,7 @@ class Demo extends React.Component {
72
72
key = "sub4"
73
73
title = {
74
74
< span >
75
- < Icon type = "setting" />
75
+ < SettingOutlined />
76
76
< span > Navigation Three</ span >
77
77
</ span >
78
78
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-console,react/no-multi-comp */
2
- import { Button , Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Button , Menu } from 'antd' ;
3
3
import * as React from 'react' ;
4
4
5
5
import Drawer from 'rc-drawer' ;
@@ -42,7 +42,7 @@ class Demo extends React.Component {
42
42
key = "sub1"
43
43
title = {
44
44
< span >
45
- < Icon type = "mail" />
45
+ < MailOutlined />
46
46
< span > Navigation One</ span >
47
47
</ span >
48
48
}
@@ -60,7 +60,7 @@ class Demo extends React.Component {
60
60
key = "sub2"
61
61
title = {
62
62
< span >
63
- < Icon type = "appstore" />
63
+ < AppstoreOutlined />
64
64
< span > Navigation Two</ span >
65
65
</ span >
66
66
}
@@ -76,7 +76,7 @@ class Demo extends React.Component {
76
76
key = "sub4"
77
77
title = {
78
78
< span >
79
- < Icon type = "setting" />
79
+ < SettingOutlined />
80
80
< span > Navigation Three</ span >
81
81
</ span >
82
82
}
Original file line number Diff line number Diff line change 1
- import { Icon , Menu , Select } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Menu , Select } from 'antd' ;
2
3
import * as React from 'react' ;
3
4
4
5
import Drawer from 'rc-drawer' ;
@@ -55,7 +56,7 @@ class Demo extends React.Component {
55
56
key = "sub1"
56
57
title = {
57
58
< span >
58
- < Icon type = "mail" />
59
+ < MailOutlined />
59
60
< span > Navigation One</ span >
60
61
</ span >
61
62
}
@@ -73,7 +74,7 @@ class Demo extends React.Component {
73
74
key = "sub2"
74
75
title = {
75
76
< span >
76
- < Icon type = "appstore" />
77
+ < AppstoreOutlined />
77
78
< span > Navigation Two</ span >
78
79
</ span >
79
80
}
@@ -89,7 +90,7 @@ class Demo extends React.Component {
89
90
key = "sub4"
90
91
title = {
91
92
< span >
92
- < Icon type = "setting" />
93
+ < SettingOutlined />
93
94
< span > Navigation Three</ span >
94
95
</ span >
95
96
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-console,react/no-multi-comp */
2
- import { Icon , Menu } from 'antd' ;
1
+ import { AppstoreOutlined , MailOutlined , SettingOutlined } from '@ant-design/icons' ;
2
+ import { Menu } from 'antd' ;
3
3
import * as React from 'react' ;
4
4
5
5
import Drawer from 'rc-drawer' ;
@@ -38,7 +38,7 @@ class Demo extends React.Component {
38
38
key = "sub1"
39
39
title = {
40
40
< span >
41
- < Icon type = "mail" />
41
+ < MailOutlined />
42
42
< span > Navigation One</ span >
43
43
</ span >
44
44
}
@@ -56,7 +56,7 @@ class Demo extends React.Component {
56
56
key = "sub2"
57
57
title = {
58
58
< span >
59
- < Icon type = "appstore" />
59
+ < AppstoreOutlined />
60
60
< span > Navigation Two</ span >
61
61
</ span >
62
62
}
@@ -72,7 +72,7 @@ class Demo extends React.Component {
72
72
key = "sub4"
73
73
title = {
74
74
< span >
75
- < Icon type = "setting" />
75
+ < SettingOutlined />
76
76
< span > Navigation Three</ span >
77
77
</ span >
78
78
}
You can’t perform that action at this time.
0 commit comments