Only one place for the version

This commit is contained in:
Paul Bienkowski 2021-11-21 20:21:54 +01:00
parent ea106539c6
commit 5d96009b01
4 changed files with 4 additions and 13 deletions

View file

@ -1,6 +1,6 @@
{
"name": "openbikesensor-portal-frontend",
"version": "0.3.0-rc.1",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,6 +1,6 @@
{
"name": "openbikesensor-portal-frontend",
"version": "0.3.0-rc.1",
"version": "0.0.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.12.0",

View file

@ -24,5 +24,5 @@
"theme_color": "#114594",
"background_color": "#ffffff",
"manifest_version": 2,
"version": "0.3.0-rc.1"
"version": "0.0.0"
}

View file

@ -24,10 +24,6 @@ import {
import {Avatar, LoginButton} from 'components'
import api from 'api'
import packageJson from '../package.json'
const {version} = packageJson
// This component removes the "navigate" prop before rendering a Menu.Item,
// which is a workaround for an annoying warning that is somehow caused by the
// <Link /> and <Menu.Item /> combination.
@ -176,14 +172,9 @@ const App = connect((state) => ({login: state.login}))(function App({login}) {
<Grid.Column>
<Header as="h5">Info</Header>
<List>
<List.Item>
<a href={`https://github.com/openbikesensor/portal/releases/tag/v${version}`} target="_blank" rel="noreferrer">
Frontend v{version}
</a>
</List.Item>
<List.Item>
<a href={`https://github.com/openbikesensor/portal${apiVersion ? `/releases/tag/v${apiVersion}` : ''}`} target="_blank" rel="noreferrer">
API v{apiVersion ?? '...'}
{apiVersion ? `v${apiVersion}` : 'Fetching version...'}
</a>
</List.Item>
</List>