Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit e2a8712

Browse files
committed
Fixing icons
1 parent 5ba20e3 commit e2a8712

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/components/DatabaseList.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import React from 'react'
22

33
import {
4-
majorScale,
54
minorScale,
5+
CrossIcon,
6+
DatabaseIcon,
7+
EyeOpenIcon,
68
Icon,
79
IconButton,
8-
Table
10+
Table,
11+
TrashIcon
912
} from 'evergreen-ui'
1013

1114
import { useHistory } from 'react-router-dom'
@@ -33,9 +36,9 @@ function ProgramList ({ programs, onRemove }) {
3336
flex='1 1 2%'
3437
textAlign='center'
3538
padding={minorScale(2)}
36-
alignItems='baseline'
39+
alignItems='center'
3740
>
38-
<Icon size={majorScale(2)} icon='eye-open'/>
41+
<Icon icon={EyeOpenIcon} />
3942
</Table.TextHeaderCell>
4043
<Table.TextHeaderCell flex='1 1 10%' paddingX={0}>Name</Table.TextHeaderCell>
4144
<Table.TextHeaderCell flex='1 1 5%' paddingX={minorScale(1)}>Type</Table.TextHeaderCell>
@@ -45,9 +48,9 @@ function ProgramList ({ programs, onRemove }) {
4548
flex='1 1 2%'
4649
textAlign='center'
4750
padding={minorScale(2)}
48-
alignItems='baseline'
51+
alignItems='center'
4952
>
50-
<Icon size={12} icon='trash'/>
53+
<Icon size={12} icon={TrashIcon} />
5154
</Table.TextHeaderCell>
5255
</Table.Head>
5356
<Table.Body>
@@ -64,7 +67,7 @@ function ProgramList ({ programs, onRemove }) {
6467
>
6568
<IconButton
6669
appearance='minimal'
67-
icon='database'
70+
icon={DatabaseIcon}
6871
margin={0}
6972
padding={0}
7073
onClick={() => handleSelect(program)}
@@ -85,7 +88,7 @@ function ProgramList ({ programs, onRemove }) {
8588
>
8689
<IconButton
8790
appearance='minimal'
88-
icon='cross'
91+
icon={CrossIcon}
8992
intent='danger'
9093
margin={0}
9194
padding={0}

src/views/Database.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useEffect } from 'react'
22
import { useHistory, useParams } from 'react-router-dom'
33
import {
44
majorScale,
5+
ArrowLeftIcon,
56
Heading,
67
IconButton,
78
Pane,
@@ -196,7 +197,7 @@ function ProgramView () {
196197
alignItems='baseline'
197198
>
198199
<IconButton
199-
icon='arrow-left'
200+
icon={ArrowLeftIcon}
200201
appearance='minimal'
201202
onClick={handleBack}
202203
/>

0 commit comments

Comments
 (0)