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

Commit 19ed50c

Browse files
committed
fixing StatusIndicator
1 parent 9123ab2 commit 19ed50c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/components/Systems.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React from 'react'
22
import {
33
majorScale,
44
minorScale,
5-
Icon,
65
Link,
76
Pane,
8-
Text
7+
Text,
8+
StatusIndicator
99
} from 'evergreen-ui'
1010

1111
import { initIPFS, initOrbitDB, getAllDatabases } from '../database'
@@ -20,7 +20,7 @@ function Systems () {
2020

2121
initIPFS().then(async (ipfs) => {
2222
dispatch({ type: actions.SYSTEMS.SET_IPFS, ipfsStatus: 'Started'})
23-
23+
2424
initOrbitDB(ipfs).then(async (databases) => {
2525
dispatch({ type: actions.SYSTEMS.SET_ORBITDB, orbitdbStatus: 'Started' })
2626

@@ -31,9 +31,8 @@ function Systems () {
3131
})
3232
}, [dispatch])
3333

34-
const statusIconSize = 6
35-
3634
return (
35+
3736
<Pane background='white' elevation={1}>
3837
<Pane
3938
display='flex'
@@ -50,21 +49,19 @@ function Systems () {
5049
marginX={minorScale(1)}
5150
>
5251
{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>
5554
}
56-
<Text paddingLeft={minorScale(2)}>IPFS</Text>
5755
</Pane>
5856
<Pane
5957
display='flex'
6058
alignItems='center'
6159
marginX={majorScale(1)}
6260
>
6361
{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>
6664
}
67-
<Text paddingLeft={minorScale(2)}>OrbitDB</Text>
6865
</Pane>
6966
</Link>
7067
</Pane>

0 commit comments

Comments
 (0)