From 67cb8b51946d7de14d66d6fa3c934e8c5929677e Mon Sep 17 00:00:00 2001 From: Manuel Calavera Date: Mon, 15 Jul 2019 11:27:38 -0700 Subject: [PATCH] feat: added package version in footer --- .env | 1 + src/v2/components/Footer/index.jsx | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.env b/.env index 6f809cc2..46f0cc36 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ SKIP_PREFLIGHT_CHECK=true +REACT_APP_VERSION=$npm_package_version diff --git a/src/v2/components/Footer/index.jsx b/src/v2/components/Footer/index.jsx index 38b2daf6..8e83fd0a 100644 --- a/src/v2/components/Footer/index.jsx +++ b/src/v2/components/Footer/index.jsx @@ -9,6 +9,8 @@ import useStyles from './styles'; import bg from './assets/bg.svg'; import bgSm from './assets/bg_sm.svg'; +const version = process.env.REACT_APP_VERSION; + const Footer = () => { const classes = useStyles(); return ( @@ -23,6 +25,8 @@ const Footer = () => { © Copyright Solana Labs, Inc. All rights reserved. +
+ {version}