mirror of
https://github.com/oceanprotocol/status
synced 2024-11-21 17:26:59 +01:00
manual bumping
This commit is contained in:
parent
b396ddc47a
commit
ecdd8a96a3
9799
package-lock.json
generated
9799
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@ -10,7 +10,7 @@
|
||||
"analyze": "ANALYZE=true next build",
|
||||
"test": "npm run lint && NODE_ENV=test jest --silent",
|
||||
"test:watch": "npm run lint && NODE_ENV=test jest --watch",
|
||||
"lint": "eslint --ignore-path .gitignore --ext .js .",
|
||||
"lint": "eslint --ignore-path .gitignore --ext .js --ext .jsx .",
|
||||
"format": "prettier --ignore-path .gitignore **/**/*.{css,yml,js,jsx,ts,tsx,json} --write"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -19,32 +19,32 @@
|
||||
"@oceanprotocol/typographies": "^0.1.0",
|
||||
"axios": "^0.19.2",
|
||||
"ethereumjs-units": "^0.2.0",
|
||||
"next": "^9.2.1",
|
||||
"next-seo": "^4.1.0",
|
||||
"next": "^9.4.1",
|
||||
"next-seo": "^4.5.0",
|
||||
"next-svgr": "^0.0.2",
|
||||
"react": "^16.12.0",
|
||||
"react-dom": "^16.12.0"
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/bundle-analyzer": "^9.2.1",
|
||||
"@testing-library/jest-dom": "^5.1.1",
|
||||
"@testing-library/react": "^9.4.0",
|
||||
"@next/bundle-analyzer": "^9.4.1",
|
||||
"@testing-library/jest-dom": "^5.7.0",
|
||||
"@testing-library/react": "^10.0.4",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"@types/jest": "^25.1.2",
|
||||
"@types/next-seo": "^1.10.0",
|
||||
"@types/node": "^13.7.0",
|
||||
"@types/react": "^16.9.19",
|
||||
"@typescript-eslint/eslint-plugin": "^2.19.2",
|
||||
"@typescript-eslint/parser": "^2.19.2",
|
||||
"eslint": "^6.8.0",
|
||||
"@types/node": "^14.0.1",
|
||||
"@types/react": "^16.9.35",
|
||||
"@typescript-eslint/eslint-plugin": "^2.33.0",
|
||||
"@typescript-eslint/parser": "^2.33.0",
|
||||
"eslint": "^7.0.0",
|
||||
"eslint-config-oceanprotocol": "^1.5.0",
|
||||
"eslint-config-prettier": "^6.10.0",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-plugin-prettier": "^3.1.3",
|
||||
"jest": "^25.1.0",
|
||||
"prettier": "^1.19.1",
|
||||
"prettier": "^2.0.5",
|
||||
"ts-jest": "^25.1.0",
|
||||
"typescript": "^3.7.5",
|
||||
"webpack": "^4.41.5"
|
||||
"typescript": "^3.9.2",
|
||||
"webpack": "^4.43.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -7,10 +7,10 @@ export default function Info({
|
||||
clientVersion,
|
||||
peers
|
||||
}: {
|
||||
gasPrice: string
|
||||
gasLimit: string
|
||||
gasPrice: number | null
|
||||
gasLimit: number | null
|
||||
clientVersion: string
|
||||
peers: number
|
||||
peers: number | null
|
||||
}) {
|
||||
return (
|
||||
<div className={styles.moreInfo}>
|
||||
|
@ -9,12 +9,12 @@ import { getClientVersion, getGasPrize, getPeers } from './utils'
|
||||
export default function Status({ network }: { network: NetworkProps }) {
|
||||
const { rpcUrl, explorerUrl } = network
|
||||
const [status, setStatus] = useState('')
|
||||
const [block, setBlock] = useState(0)
|
||||
const [latency, setLatency] = useState(0)
|
||||
const [gasLimit, setGasLimit] = useState()
|
||||
const [block, setBlock] = useState<number | null>(0)
|
||||
const [latency, setLatency] = useState<number | null>(0)
|
||||
const [gasLimit, setGasLimit] = useState<number | null>(0)
|
||||
const [clientVersion, setClientVersion] = useState('')
|
||||
const [gasPrice, setGasPrice] = useState()
|
||||
const [peers, setPeers] = useState()
|
||||
const [gasPrice, setGasPrice] = useState<number | null>(0)
|
||||
const [peers, setPeers] = useState<number | null>(0)
|
||||
|
||||
async function getStatusAndBlock() {
|
||||
if (!rpcUrl) return
|
||||
@ -69,7 +69,7 @@ export default function Status({ network }: { network: NetworkProps }) {
|
||||
|
||||
return (
|
||||
<div className={styles.networkData}>
|
||||
{block > 0 ? (
|
||||
{block && block > 0 ? (
|
||||
<>
|
||||
<h2 className={styles.status}>
|
||||
<span className={isOnline ? styles.success : styles.error}>
|
||||
|
Loading…
Reference in New Issue
Block a user