This repository was archived by the owner on Dec 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
3
3
import {
4
- majorScale ,
5
4
minorScale ,
5
+ CrossIcon ,
6
+ DatabaseIcon ,
7
+ EyeOpenIcon ,
6
8
Icon ,
7
9
IconButton ,
8
- Table
10
+ Table ,
11
+ TrashIcon
9
12
} from 'evergreen-ui'
10
13
11
14
import { useHistory } from 'react-router-dom'
@@ -33,9 +36,9 @@ function ProgramList ({ programs, onRemove }) {
33
36
flex = '1 1 2%'
34
37
textAlign = 'center'
35
38
padding = { minorScale ( 2 ) }
36
- alignItems = 'baseline '
39
+ alignItems = 'center '
37
40
>
38
- < Icon size = { majorScale ( 2 ) } icon = 'eye-open' />
41
+ < Icon icon = { EyeOpenIcon } />
39
42
</ Table . TextHeaderCell >
40
43
< Table . TextHeaderCell flex = '1 1 10%' paddingX = { 0 } > Name</ Table . TextHeaderCell >
41
44
< Table . TextHeaderCell flex = '1 1 5%' paddingX = { minorScale ( 1 ) } > Type</ Table . TextHeaderCell >
@@ -45,9 +48,9 @@ function ProgramList ({ programs, onRemove }) {
45
48
flex = '1 1 2%'
46
49
textAlign = 'center'
47
50
padding = { minorScale ( 2 ) }
48
- alignItems = 'baseline '
51
+ alignItems = 'center '
49
52
>
50
- < Icon size = { 12 } icon = 'trash' />
53
+ < Icon size = { 12 } icon = { TrashIcon } />
51
54
</ Table . TextHeaderCell >
52
55
</ Table . Head >
53
56
< Table . Body >
@@ -64,7 +67,7 @@ function ProgramList ({ programs, onRemove }) {
64
67
>
65
68
< IconButton
66
69
appearance = 'minimal'
67
- icon = 'database'
70
+ icon = { DatabaseIcon }
68
71
margin = { 0 }
69
72
padding = { 0 }
70
73
onClick = { ( ) => handleSelect ( program ) }
@@ -85,7 +88,7 @@ function ProgramList ({ programs, onRemove }) {
85
88
>
86
89
< IconButton
87
90
appearance = 'minimal'
88
- icon = 'cross'
91
+ icon = { CrossIcon }
89
92
intent = 'danger'
90
93
margin = { 0 }
91
94
padding = { 0 }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useEffect } from 'react'
2
2
import { useHistory , useParams } from 'react-router-dom'
3
3
import {
4
4
majorScale ,
5
+ ArrowLeftIcon ,
5
6
Heading ,
6
7
IconButton ,
7
8
Pane ,
@@ -196,7 +197,7 @@ function ProgramView () {
196
197
alignItems = 'baseline'
197
198
>
198
199
< IconButton
199
- icon = 'arrow-left'
200
+ icon = { ArrowLeftIcon }
200
201
appearance = 'minimal'
201
202
onClick = { handleBack }
202
203
/>
You can’t perform that action at this time.
0 commit comments