@@ -2,10 +2,10 @@ import React from 'react'
2
2
import {
3
3
majorScale ,
4
4
minorScale ,
5
- Icon ,
6
5
Link ,
7
6
Pane ,
8
- Text
7
+ Text ,
8
+ StatusIndicator
9
9
} from 'evergreen-ui'
10
10
11
11
import { initIPFS , initOrbitDB , getAllDatabases } from '../database'
@@ -20,7 +20,7 @@ function Systems () {
20
20
21
21
initIPFS ( ) . then ( async ( ipfs ) => {
22
22
dispatch ( { type : actions . SYSTEMS . SET_IPFS , ipfsStatus : 'Started' } )
23
-
23
+
24
24
initOrbitDB ( ipfs ) . then ( async ( databases ) => {
25
25
dispatch ( { type : actions . SYSTEMS . SET_ORBITDB , orbitdbStatus : 'Started' } )
26
26
@@ -31,9 +31,8 @@ function Systems () {
31
31
} )
32
32
} , [ dispatch ] )
33
33
34
- const statusIconSize = 6
35
-
36
34
return (
35
+
37
36
< Pane background = 'white' elevation = { 1 } >
38
37
< Pane
39
38
display = 'flex'
@@ -50,21 +49,19 @@ function Systems () {
50
49
marginX = { minorScale ( 1 ) }
51
50
>
52
51
{ appState . ipfsStatus === 'Started'
53
- ? < Icon size = { statusIconSize } icon = 'full-circle' color = ' success' / >
54
- : < Icon size = { statusIconSize } icon = 'full-circle' color = ' warning' / >
52
+ ? < StatusIndicator color = " success" > IPFS </ StatusIndicator >
53
+ : < StatusIndicator color = " warning" > IPFS </ StatusIndicator >
55
54
}
56
- < Text paddingLeft = { minorScale ( 2 ) } > IPFS</ Text >
57
55
</ Pane >
58
56
< Pane
59
57
display = 'flex'
60
58
alignItems = 'center'
61
59
marginX = { majorScale ( 1 ) }
62
60
>
63
61
{ appState . orbitdbStatus === 'Started'
64
- ? < Icon size = { statusIconSize } icon = 'full-circle' color = ' success' / >
65
- : < Icon size = { statusIconSize } icon = 'full-circle' color = ' warning' / >
62
+ ? < StatusIndicator color = " success" > OrbitDB </ StatusIndicator >
63
+ : < StatusIndicator color = " warning" > OrbitDB </ StatusIndicator >
66
64
}
67
- < Text paddingLeft = { minorScale ( 2 ) } > OrbitDB</ Text >
68
65
</ Pane >
69
66
</ Link >
70
67
</ Pane >
0 commit comments