mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
v prefix fixes
This commit is contained in:
parent
ee4d1820ab
commit
eb59b9dfda
@ -50,7 +50,7 @@ const VersionTable = ({ data }: { data: VersionTableProps }) => (
|
|||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<code>{value.version}</code>
|
<code>v{value.version}</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{key === 'keeperContracts' && (
|
{key === 'keeperContracts' && (
|
||||||
|
@ -20,7 +20,7 @@ import {
|
|||||||
import VersionTable from './VersionTable'
|
import VersionTable from './VersionTable'
|
||||||
|
|
||||||
const commonsVersion =
|
const commonsVersion =
|
||||||
process.env.NODE_ENV === 'production' ? `v${version}` : `v${version}-dev`
|
process.env.NODE_ENV === 'production' ? version : `${version}-dev`
|
||||||
|
|
||||||
interface VersionNumbersProps {
|
interface VersionNumbersProps {
|
||||||
minimal?: boolean
|
minimal?: boolean
|
||||||
@ -66,7 +66,7 @@ export default class VersionNumbers extends PureComponent<
|
|||||||
commons: { software: 'Commons', version: commonsVersion },
|
commons: { software: 'Commons', version: commonsVersion },
|
||||||
squidJs: {
|
squidJs: {
|
||||||
software: 'Squid-js',
|
software: 'Squid-js',
|
||||||
version: `v${versionSquid}`
|
version: versionSquid
|
||||||
},
|
},
|
||||||
aquarius: { software: 'Aquarius', version: '0.0.0' },
|
aquarius: { software: 'Aquarius', version: '0.0.0' },
|
||||||
brizo: {
|
brizo: {
|
||||||
@ -112,7 +112,7 @@ export default class VersionNumbers extends PureComponent<
|
|||||||
brizo,
|
brizo,
|
||||||
keeperContracts: {
|
keeperContracts: {
|
||||||
...this.state.keeperContracts,
|
...this.state.keeperContracts,
|
||||||
version: brizo['keeper-version'],
|
version: brizo['keeper-version'].replace('v', ''),
|
||||||
contracts: brizo.contracts
|
contracts: brizo.contracts
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -141,7 +141,7 @@ export default class VersionNumbers extends PureComponent<
|
|||||||
const { minimal } = this.props
|
const { minimal } = this.props
|
||||||
const { commons, squidJs, brizo, aquarius, faucet } = this.state
|
const { commons, squidJs, brizo, aquarius, faucet } = this.state
|
||||||
|
|
||||||
const mimimalOutput = `${squidJs.software} ${squidJs.version} \n${
|
const mimimalOutput = `${squidJs.software} v${squidJs.version} \n${
|
||||||
brizo.software
|
brizo.software
|
||||||
} v${brizo.version} \n${aquarius.software} v${
|
} v${brizo.version} \n${aquarius.software} v${
|
||||||
aquarius.version
|
aquarius.version
|
||||||
@ -152,7 +152,7 @@ export default class VersionNumbers extends PureComponent<
|
|||||||
return minimal ? (
|
return minimal ? (
|
||||||
<p className={styles.versionsMinimal}>
|
<p className={styles.versionsMinimal}>
|
||||||
<a title={mimimalOutput} href={'/about'}>
|
<a title={mimimalOutput} href={'/about'}>
|
||||||
{commons.version} ({brizo.network})
|
v{commons.version} ({brizo.network})
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
Reference in New Issue
Block a user