diff --git a/client/src/components/organisms/Footer.module.scss b/client/src/components/organisms/Footer.module.scss index 6f933ed..72407d9 100644 --- a/client/src/components/organisms/Footer.module.scss +++ b/client/src/components/organisms/Footer.module.scss @@ -91,3 +91,9 @@ } } } + +.version { + font-family: $font-family-monospace; + font-size: $font-size-mini; + margin-top: $spacer; +} diff --git a/client/src/components/organisms/Footer.tsx b/client/src/components/organisms/Footer.tsx index 99b5f99..cbcf60d 100644 --- a/client/src/components/organisms/Footer.tsx +++ b/client/src/components/organisms/Footer.tsx @@ -5,6 +5,33 @@ import { ReactComponent as AiCommons } from '../../img/aicommons.svg' import styles from './Footer.module.scss' import meta from '../../data/meta.json' +import { version } from '../../../package.json' +import { version as versionSquid } from '@oceanprotocol/squid/package.json' + +const VersionNumber = () => { + const versionOutput = + process.env.NODE_ENV === 'production' + ? `v${version}` + : `v${version}-dev` + + return ( +
+ + {versionOutput} + {' '} + —{' '} + + squid-js v{versionSquid} + +
+ ) +} const Footer = () => (