ci: added commit lint, build check, test and release (#31)
* ci: added commit lint, build check, test and release * refactor: fix compilation errors * ci: add checkout to the tests * test: resolved issues with running tests * chore: addressed PR comments * chore: renamed package-name in release-please
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { Table, TableBody, TableCell, TableContainer, TableRow, TableHead, Button, Paper, Tooltip, Container, CircularProgress } from '@material-ui/core';
|
||||
import { Cancel, Autorenew } from '@material-ui/icons';
|
||||
import { Autorenew } from '@material-ui/icons';
|
||||
|
||||
import { beeDebugApi } from '../../services/bee';
|
||||
|
||||
@@ -16,7 +16,6 @@ function PeerTable(props: any) {
|
||||
const classes = useStyles();
|
||||
|
||||
const [peerLatency, setPeerLatency] = useState([{ peerId: '', rtt: '', loading: false }]);
|
||||
const [removingPeer, setRemovingPeer] = useState(false);
|
||||
|
||||
const PingPeer = async (peerId: string) => {
|
||||
|
||||
@@ -30,21 +29,6 @@ function PeerTable(props: any) {
|
||||
})
|
||||
}
|
||||
|
||||
const removePeer = (peerId: string) => {
|
||||
setRemovingPeer(true)
|
||||
beeDebugApi.connectivity.removePeer(peerId)
|
||||
.then(res => {
|
||||
window.location.reload()
|
||||
setRemovingPeer(false)
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
})
|
||||
.finally(() => {
|
||||
setRemovingPeer(false)
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
{props.loading ?
|
||||
@@ -77,12 +61,6 @@ function PeerTable(props: any) {
|
||||
<Autorenew />}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
{/* <Tooltip title="Remove peer">
|
||||
<Button color="primary" onClick={() => removePeer(peer.address)} >
|
||||
<Cancel />
|
||||
</Button>
|
||||
</Tooltip> */}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user