diff --git a/client/src/components/atoms/VersionNumbers/VersionTable.module.scss b/client/src/components/molecules/VersionNumbers/VersionTable.module.scss
similarity index 93%
rename from client/src/components/atoms/VersionNumbers/VersionTable.module.scss
rename to client/src/components/molecules/VersionNumbers/VersionTable.module.scss
index 06f9b2e..348288e 100644
--- a/client/src/components/atoms/VersionNumbers/VersionTable.module.scss
+++ b/client/src/components/molecules/VersionNumbers/VersionTable.module.scss
@@ -54,6 +54,6 @@
}
.spinner {
- composes: spinner, small from '../Spinner.module.scss';
+ composes: spinner, small from '../../atoms/Spinner.module.scss';
margin-right: $spacer;
}
diff --git a/client/src/components/atoms/VersionNumbers/VersionTable.tsx b/client/src/components/molecules/VersionNumbers/VersionTable.tsx
similarity index 51%
rename from client/src/components/atoms/VersionNumbers/VersionTable.tsx
rename to client/src/components/molecules/VersionNumbers/VersionTable.tsx
index fcab197..b9c05be 100644
--- a/client/src/components/atoms/VersionNumbers/VersionTable.tsx
+++ b/client/src/components/molecules/VersionNumbers/VersionTable.tsx
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react'
import { VersionNumbersState as VersionTableProps } from '.'
import styles from './VersionTable.module.scss'
import slugify from '@sindresorhus/slugify'
-import Spinner from '../Spinner'
+import Spinner from '../../atoms/Spinner'
const VersionTableContracts = ({
contracts,
@@ -14,27 +14,60 @@ const VersionTableContracts = ({
{contracts &&
- Object.keys(contracts).map(key => (
-
-
- {key}
- |
-
-
- {contracts[key]}
-
- |
-
- ))}
+ Object.keys(contracts).map(key => {
+ const submarineLink = `https://submarine${
+ network === 'duero'
+ ? '.duero'
+ : network === 'pacific'
+ ? '.pacific'
+ : ''
+ }.dev-ocean.com/address/${contracts[key]}`
+
+ return (
+
+
+ {key}
+ |
+
+
+ {contracts[key]}
+
+ |
+
+ )
+ })}
)
+const VersionNumber = ({
+ isLoading,
+ software,
+ version,
+ network
+}: {
+ isLoading: boolean
+ software: string
+ version: string
+ network: string
+}) =>
+ isLoading ? (
+
+ ) : version ? (
+ <>
+
+ v{version}
+
+ {network && `(${network})`}
+ >
+ ) : (
+ Could not get version
+ )
+
const VersionTable = ({ data }: { data: VersionTableProps }) => (
@@ -55,16 +88,12 @@ const VersionTable = ({ data }: { data: VersionTableProps }) => (
- {value.isLoading ? (
-
- ) : value.version ? (
- <>
- v{value.version}
- {value.network && `(${value.network})`}
- >
- ) : (
- 'Could not get version'
- )}
+
|
{key === 'keeperContracts' && data.brizo.contracts && (
diff --git a/client/src/components/atoms/VersionNumbers/index.module.scss b/client/src/components/molecules/VersionNumbers/index.module.scss
similarity index 100%
rename from client/src/components/atoms/VersionNumbers/index.module.scss
rename to client/src/components/molecules/VersionNumbers/index.module.scss
diff --git a/client/src/components/atoms/VersionNumbers/index.test.tsx b/client/src/components/molecules/VersionNumbers/index.test.tsx
similarity index 100%
rename from client/src/components/atoms/VersionNumbers/index.test.tsx
rename to client/src/components/molecules/VersionNumbers/index.test.tsx
diff --git a/client/src/components/atoms/VersionNumbers/index.tsx b/client/src/components/molecules/VersionNumbers/index.tsx
similarity index 100%
rename from client/src/components/atoms/VersionNumbers/index.tsx
rename to client/src/components/molecules/VersionNumbers/index.tsx
diff --git a/client/src/components/atoms/VersionNumbers/utils.test.ts b/client/src/components/molecules/VersionNumbers/utils.test.ts
similarity index 100%
rename from client/src/components/atoms/VersionNumbers/utils.test.ts
rename to client/src/components/molecules/VersionNumbers/utils.test.ts
diff --git a/client/src/components/atoms/VersionNumbers/utils.ts b/client/src/components/molecules/VersionNumbers/utils.ts
similarity index 100%
rename from client/src/components/atoms/VersionNumbers/utils.ts
rename to client/src/components/molecules/VersionNumbers/utils.ts
diff --git a/client/src/components/organisms/Footer.tsx b/client/src/components/organisms/Footer.tsx
index bbfcfd4..8e54a22 100644
--- a/client/src/components/organisms/Footer.tsx
+++ b/client/src/components/organisms/Footer.tsx
@@ -5,7 +5,7 @@ import { ReactComponent as AiCommons } from '../../img/aicommons.svg'
import styles from './Footer.module.scss'
import meta from '../../data/meta.json'
-import VersionNumbers from '../atoms/VersionNumbers'
+import VersionNumbers from '../molecules/VersionNumbers'
const Footer = () => (