Skip to content

Commit

Permalink
CUDOS-2366-app-version-in-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettiOverload committed Mar 20, 2023
1 parent f6efb15 commit 5e33286
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ VITE_APP_MAINNET_CHAIN_NAME=''
VITE_APP_MAINNET_CHAIN_ID=''

# GENERAL SETTINGS
VITE_APP_DEPLOYMENT_VERSION='' #v0.0.1 format
VITE_NODE_ENV='' #Production or empty
VITE_APP_DEFAULT_NETWORK='' # LOCAL | PRIVATE | PUBLIC | MAINNET
VITE_APP_GAS_PRICE=5000000000000
4 changes: 3 additions & 1 deletion src/components/Layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import MediumIcon from 'assets/vectors/medium.svg?component'
import YouTubeIcon from 'assets/vectors/youtube.svg?component'
import FacebookIcon from 'assets/vectors/facebook.svg?component'
import SpotifyIcon from 'assets/vectors/spotify.svg?component'
import { APP_DETAILS } from 'utils/constants'
import { styles } from './styles'

const linksLeft = [
Expand All @@ -17,7 +18,8 @@ const linksLeft = [
},
{ text: 'Privacy Policy', url: 'https://www.cudos.org/privacy-policy' },
{ text: 'cudos.org', url: 'https://www.cudos.org/' },
{ text: `License © 2018 - ${moment().year()}`, url: 'https://www.cudos.org/' }
{ text: `License © 2018 - ${moment().year()}`, url: 'https://www.cudos.org/' },
{ text: `${APP_DETAILS.DEPLOYMENT_VERSION}`, url: `https://github.com/CudoVentures/cudos-dashboard/releases/tag/${APP_DETAILS.DEPLOYMENT_VERSION}` }
]

const linksRight = [
Expand Down
4 changes: 4 additions & 0 deletions src/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export const CHAIN_DETAILS = {
}

// GENERAL APP CONFIGURATIONS
export const APP_DETAILS = {
DEPLOYMENT_VERSION: import.meta.env.VITE_APP_DEPLOYMENT_VERSION || process.env.VITE_APP_DEPLOYMENT_VERSION || ""
}

export const SCREEN_RESOLUTIONS = {
HIGH: 1600,
MID_LOW: 1300,
Expand Down

0 comments on commit 5e33286

Please sign in to comment.